Dynamic Color Basics For Material Design 3
Material Design 3’s nickname of Material You derives from the feature of having the Android core palette from user chosen wallpaper colors or desktop user chosen accent color being used to shift the hue of the color scheme of the app theme. That feature is enabled by a package outside the Flutter SDK called dynamic color that was created by the Material IO team. I am going to show you how to use it.
In Material Design 3, the feature of having the app theme hue shift in response to user color of wallpaper on mobile and accent color on desktop is provided by the dynamic color package:
And the typical pubspec entry is:
To fully make use of it, it is a good idea to see how the main DynamicColorBuilder work internally: