Skip to content

Using FlexColorScheme themedSystemNavigationBar I can set the system navigation bar styles, but unable to set the style of the status bar at the same time after use #246

Closed Answered by rydmike
laterdayi asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @laterdayi,

Thanks for you question. There are couple of options.

1. Use SystemUiOverlayStyle

The FlexColorScheme.themedSystemNavigationBar is just static small convenience helper for the SystemUiOverlayStyle. You can use it in the AnnotatedRegion value instead with its properties directly. You will have to extract desired colors from the active theme yourself instead. This will only work if the screen does not have an AppBar.

2. Set status bar colors in the AppBar.

If the page you are using includes an AppBar, the value defined for status bar colors in it will override the AnnotatedRegion status bar colors anyway, so it is pointless to define it in an AnnotatedRegion if you have an Ap…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rydmike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question This issue is a usage question and will be moved to the Discussions section.
2 participants
Converted from issue

This discussion was converted from issue #229 on August 15, 2024 23:51.