Member-only story
Flutter Themes And MD3, Material You
You know that if you know how to soar in Dart and Flutter, you really do not have to wait for the Flutter SDK changes to support Material Design 3 coming out to get material Design 3 right now.
Caution: The way I am showing directly couples things to a modified ThemeData class. That means until all the UI components are changed to MD3, you keep the useMaterial3 flag set to false. And keep in mind that every time there is a change in ThemeData, you will have to update the modified ThemeData class until MD3 is full in Flutter.
What is Material Design Three, Material You
What is MD3, Material You. The problem with Material Design in previous versions had color palette problems. As the color space used could not perfectly represent viewing conditions of the color as part of the color space.
What we get in MD3(Material You) is a new color space called HCT. With that, I can use a four color group to generate a full theme of color branding. Or, in the case of Android 12, one can input one color from the wallpaper and also generate both the light and dark theme palettes of the app.
And of course, some of you know from my articles on adaptive navigation that adaptive navigation and other widget changes are in MD3. There are some new text style groupings that…