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().
Package
dynamic_color
Existing issue?
What happened?
Expected vs actual result:
Flutter 3.22 has updated
ColorScheme
. The newColorScheme
includes a variety of surfaceContainer colors. Using the current version ofdynamic_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 usessurfaceContainer
as the background color by default. The first one is the color created by 3.22 ColorScheme.fromSeed, and the second one is usinggetCorePalette().toColorScheme()
.Relevant log output
No response