Member-only story

Flutter Themes With Super Powers

Fred Grott
3 min readJul 17, 2022

--

The challenge of the Flutter SDK is that it is never ever fully up-to-speed with the current Material Design Spec. But, if you know what flutter plugin stack to use, you can dramatically shorten the amount of custom code you have to write to support the current Material Design 3 spec. I am going to show you how to use the Flex Color Scheme package to have better themes and implement less theme code.

Background

Okay, so I will summarize; one can follow the discussion here on this github issue:

When the Flutter SDK first started rewriting the way ThemeData and themes work, they sort of envisioned a future situation where you could implement the colors and those would flow through the themes so that one would have fewer themes to fully customize and implement. Only, it did not exactly work out that way.

So Rydmike came up with the Flex Color Schemes package to specifically address that and keep up with changes in the Material Design spec:

--

--

Fred Grott
Fred Grott

No responses yet