Flutter 3: How to extend ThemeData
Published in
3 min readMay 12, 2022
--
In 2019, I have written an article about extending the flutter ThemeData
class by using Extension methods
. In my opinion, that was just a workaround; it has some drawbacks and it’s not very elegant. With the release of Flutter 3.0, it comes with a better solution: the ThemeExtension
class.
The New Solution
We are going to make the bootstrap flavoured colour scheme, just like the last time: