How to set the progressIndicatorTheme in ThemeData #177
-
I need to style our linear progress indicator background color. I create our theme using what I copied from the code popup the design tool
The progressIndicatorTheme is empty/null. The standard ThemeData class lets me do this
I don't see the same progressIndicatorTheme on any of the flex_color_scheme classes. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @freemansoft, Thanks for your question. FlexColorScheme does not claim to contain all features that ThemeData has, only to make many of its more complex topics simpler 🙂 It does however return vanilla FlexThemeData.light(...).copyWith(progressIndicatorTheme: ProgressIndicatorThemeData(
color: ,
circularTrackColor: ,
linearTrackColor:
refreshBackgroundColor:
))); You might want to look into other similar QAs here that shows more in depth examples and explanations on this, and also on how to access the ColorScheme it will create, as you might need its colors in your component theme that you add with Also please note that if you want to modify component themes it has already made, you need to operate the I would link to the examples showing more info, but I am typing this answer on a phone, so it is a bit tricky. I can do so later if you need further assistance. -Mike |
Beta Was this translation helpful? Give feedback.
-
Thanks. That was what I needed to know. I also appreciate the project scope information. |
Beta Was this translation helpful? Give feedback.
Hi @freemansoft,
Thanks for your question.
FlexColorScheme does not claim to contain all features that ThemeData has, only to make many of its more complex topics simpler 🙂
It does however return vanilla
ThemeData
so you can modify the returned object and add features to it that it lacks with normalThemeData
methods likecopyWith
and modify or add anythingThemeData
offers with it, this in addition to what FlexSeedScheme has already done. For exampleYou might want to look into other similar QAs he…