-
-
Notifications
You must be signed in to change notification settings - Fork 113
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I modify the color of the system UI overlay? #178
Comments
It appears that when I use SystemChrome to change the navbar color, it briefly flashes the desired color then is overridden by the theme, but only when using a Flex theme SystemChrome.setSystemUIOverlayStyle(
SystemUiOverlayStyle(systemNavigationBarColor: Colors.black)); |
Fixed it! Wrapped this around my navigation bar widget and it's sorted :D return AnnotatedRegion<SystemUiOverlayStyle>
// Makes the bottom nav bar transparent so we dont have to see its ugly face
value: SystemUiOverlayStyle(
systemNavigationBarColor: Colors.black.withOpacity(0),
),
) |
Hi @TDuffinNTU, My apologies for not noticing this question earlier. Glad to see you figured it out. Just to confirm, yes using an In the FlexColorScheme docs it is mentioned here: https://docs.flexcolorscheme.com/deep_dives#themed-system-navigation-bar-in-android There is also a static helper for using the You can find API docs for the It is also mentioned in the Themes Playground app in the Android Sys Nav panel. Of course the features do not work on the Themes Playground WEB app, as it is not a theme feature and it does not do anything on WEB builds. However, if you build the Themes Playground for an Android device and manipulate the settings in this panel, you can see their impact. The settings for the system navigation bar in Android have limitations and do not work on older versions of Android, also earlier there were some issues in Flutter with it even on some newer versions. It is fixed now, but if it is of interest, this issue can be an educational read: This issue also contains a nice collection about system navigation bar APIs and its known issues: flutter/flutter#112301 Many of them have been solved. Happy theming and good luck with your Flutter app! -Mike PS. I'm going to add this issue to Q&A in Discussions, since by making it discoverbale there I think it might benefit more devs than only having it here in a closed issue. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
As you can see from the image, the background of the ui navigator overlay is showing a white (SchemeColor.surface??) color of my theme. I tried using
SystemChrome
but this is overridden when the theme loads, and you can't modify this at runtime as far as I know.Here's how my theme looks:
This might be unrelated to your package but I know you're well versed with theming so maybe you know where I can look next? thanks!
The text was updated successfully, but these errors were encountered: