Member-only story
Flutter Themes, Taming The UnThemed
2 min readNov 27, 2021
Everyone knows the trick of using the Inherited Widget Theme to theme an unthemed Flutter component, such as:
But that will only allow a color change. There is a smarter way to do it so that you can change shapes.
Shaped Drop-Downs
Instead, we can use containers:
That will give me a light blue colored drop-down with rounded colors.
Oh, but there is more! Let’s see some more BoxDecoration.
BoxDecoration Shapes
We can supply a shape in BoxDecoration: