-
Ever since I deployed 'flex_color_scheme' into my Android app, with tab bar's in the body area it is no longer showing the current selected tab with an indicator underline. How do I set at a MaterialApp theme level a configuration for the tab bar so that an indicator is shown? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @davoutuk, thanks for your question. Can you show me how you are expecting things to look? What your use case looks like? It is a bit unclear to me. I can only answer generally below. There are many ways to style the The Example default M3
In M3 mode the Example default M2
In light mode in M2 mode the Alternatively you can use direct color selections for its theme when using sub-themes in FCS. Using them will override any I recommend using the It is important to notice that you cannot make a This is Flutter theme limitation, since you can only have one theme for the If you do need to use a If none of the easy config options in FCS work for your use case, you can also override any component theme FCS has made, with your own. See the Discussions section to find many past examples on how to do this with other component themes used as examples. |
Beta Was this translation helpful? Give feedback.
Hi @davoutuk, thanks for your question.
Can you show me how you are expecting things to look? What your use case looks like? It is a bit unclear to me. I can only answer generally below.
There are many ways to style the
TabBar
with FlexColorScheme. Its default behavior also depends on if you are using M3 or old M2 mode.The
TabBar
is designed to by default use a theme that fits in theAppBar
theme use for the app. If you use theTabBar
in a body, which you can, you may have to style or theme it to fit in the body, concerning its contrast colors. In M3 mode it typically fits be default, since defaultAppBar
theme uses same style with same contrast requirements as the default body style need.