gtk-flutter / adwaita

Implementation of the adwaita theme for flutter/dart
https://pub.dev/packages/adwaita
Mozilla Public License 2.0
36 stars 8 forks source link

Pub package is broken #18

Open SkyLissh opened 1 year ago

SkyLissh commented 1 year ago

The package in pub.dev is broken due to failed static analysis, but I saw that the master branch is working properly, Why this branch isn't deployed to pub.dev?

image

syedarsalankazmi commented 11 months ago

Yes, @SkyLissh. I am facing the same issue when trying to build for Android :(

../../../../../.pub-cache/hosted/pub.dev/adwaita-1.0.1/lib/src/theme.dart:14:5: Error: No named parameter with the name 'primaryColorDark'. primaryColorDark: AdwaitaColors.darkBackgroundColor, ^^^^^^^^^^^^^^^^ ../../../../../flutter/packages/flutter/lib/src/material/color_scheme.dart:462:11: Context: Found this candidate, but the arguments don't match. factory ColorScheme.fromSwatch({ ^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/adwaita-1.0.1/lib/src/theme.dart:25:5: Error: No named parameter with the name 'primaryColorDark'. primaryColorDark: AdwaitaColors.darkBackgroundColor, ^^^^^^^^^^^^^^^^ ../../../../../flutter/packages/flutter/lib/src/material/color_scheme.dart:462:11: Context: Found this candidate, but the arguments don't match. factory ColorScheme.fromSwatch({ ^^^^^^^^^^ Target kernel_snapshot failed: Exception

@prateekmedia . Can you please fix this?

SkyLissh commented 11 months ago

@syedarsalankazmi For now you can add the adwaita dependency from git in your pubspec.yaml

in this way: Screenshot_20231004_095756