material-foundation / flutter-packages

A collection of useful Material Design packages
https://pub.dev/publishers/material.io
Apache License 2.0
841 stars 159 forks source link

`dynamic_color` on `Android`: Please migrate `CorePalette` to Flutter 3.22 #590

Closed twinstar6980 closed 6 months ago

twinstar6980 commented 6 months ago

Package

dynamic_color

Existing issue?

What happened?

Expected vs actual result:

Flutter 3.22 has updated ColorScheme. The new ColorScheme includes a variety of surfaceContainer colors. Using the current version of dynamic_color in 3.22 projects will cause the background colors of some widgets to be difficult to distinguish.

In the example below, the app uses surface as the background color, and BottomAppBar uses surfaceContainer as the background color by default. The first one is the color created by 3.22 ColorScheme.fromSeed, and the second one is using getCorePalette().toColorScheme().

2 1

Relevant log output

No response

resucutie commented 6 months ago

Duplicate of #582