-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using dynamic_color
on Flutter 3.21.0-1.0.pre.2 yields weird/incorrect color palette
#574
Comments
I think the problem is external and comes from the fixed |
@veloce I've tested material_color_utilities 0.11.1 with latest Flutter beta, nothing changed visually. pubspec.yamlname: flutter_experiments
description: "A new Flutter project."
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: '>=3.4.0-190.1.beta <4.0.0'
dependencies:
flutter:
sdk: flutter
dynamic_color: ^1.7.0
cupertino_icons: ^1.0.6
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^3.0.0
dependency_overrides:
# https://github.com/material-foundation/flutter-packages/issues/574
material_color_utilities: ^0.11.1
flutter:
uses-material-design: true flutter doctor -v
|
+1 to this solution, however, the color mappings will need to be adjusted as some are incorrect and some are missing Please use https://developer.android.com/reference/android/R.color and https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/material/color_scheme.dart#L156 as the basis |
Package
dynamic_color
Existing issue?
What happened?
Background color of
ElevatedButton
is the same as surface color when using the pluginExpected vs actual result:
Steps to reproduce:
dynamic_color: ^1.7.0
todependencies
inpubspec.yaml
main.dart
Relevant log output
Extra info
Bisecting flutter changes between latest known working version and latest beta, I found the commit that changed the behavior: flutter/flutter@0d8eafb
The text was updated successfully, but these errors were encountered: