In flutter even when I set
primaryColor: Colors.orange,
then in some part of the UI the default Colors.blue is still present. Is there a way how to globally override it for the ThemeData?
In order for me to override Colors.blue, I had to state primarySwatch in the ThemeData and also the colorScheme, as in
theme: ThemeData(
primarySwatch: Colors.orange,
colorScheme: ColorScheme.fromSwatch(primarySwatch: Colors.orange),
),
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With