-
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
I can't set the statusBarColor at this point Is it possible to style the status bar and navigation bar at the same time as this API
@rydmike Looking forward to your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @laterdayi, Thanks for you question. There are couple of options. 1. Use
|
Beta Was this translation helpful? Give feedback.
Hi @laterdayi,
Thanks for you question. There are couple of options.
1. Use
SystemUiOverlayStyle
The
FlexColorScheme.themedSystemNavigationBar
is just static small convenience helper for theSystemUiOverlayStyle
. You can use it in theAnnotatedRegion
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 anAppBar
.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 theAnnotatedRegion
status bar colors anyway, so it is pointless to define it in anAnnotatedRegion
if you have anAp…