Package
dynamic_color
Description
Migrate from depprecated APIs
- CorePalette.fromList
- Scheme.lightFromCorePalette
- Scheme.darkFromCorePalette
to
- CorePalettes
- DynamicScheme (and concrete implementations like
SchemeTonalSpot
Contrast
In doing so, we'll also be able to leverage Material's / Android's multi-level contrast:
Expected vs actual result:
- Material 3 has introduced user-controlled color contrast which allows users to select three levels of contrast:

- According to the linked specification, the color scheme should "automatically" inherit the system contrast settings. However, the
dynamic_color plugin does not respect this setting. The colors provided by the plugin are always the same irrespective of the contrast setting.
Steps to reproduce:
- Create a Flutter app and add the
dynamic_color package.
- Use
DynamicColorBuilder to get the light and dark color schemes.
- Run the app on Android where the contrast setting is supported. To change the contrast, go to Developer Options > Contrast.
- After changing the contrast, open another app where dynamic color is supported like Google Drive to observe the differences.
- Reopen the Flutter app. It can be observed that the colors do not change as per the selected contrast option.
Package
dynamic_color
Description
Migrate from depprecated APIs
to
SchemeTonalSpotContrast
In doing so, we'll also be able to leverage Material's / Android's multi-level contrast:
Expected vs actual result:
dynamic_colorplugin does not respect this setting. The colors provided by the plugin are always the same irrespective of the contrast setting.Steps to reproduce:
dynamic_colorpackage.DynamicColorBuilderto get the light and dark color schemes.