Member-only story
Flutter Themes In 15 Minutes
Like it or not, Flutter Themes are a Jekyll-And-Hyde set up of dealing with two theme systems and color systems. But, there is a systematic way to deal with it. Let me show you how.
Yeah, It’s A Trick To Show You Best Practices
Okay, you caught me! This article is a trick to show how to choose correct naming strategies as a way to create understanding through semantic structure. And, it’s a real good example as we have two dissimilar systems, one in target themes of Material and Cupertino; and, the other set being Material Colors and Cupertino Dynamic Colors.
Okay, let’s get on the crazy and train and see how complicated it is.
NoDefaultCupertinoThemeData Override Cupertino Theme versus MaterialBased CupertinoThemeData
Yeah, it’s a mouthful, and yet those are the two methods to integrate the dissimilar Theme and Color Systems together. Let see the code:
NoDefaultCupertinoThemeData: