-
Provides parameters to make the android status bar transparent
Although this can be implemented, can it be provided to the user as a theme parameter of flex_color_scheme |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi again @laterdayi 😄 FlexColorScheme only returns If a screen has an You can actually only see the impact of this toggle in the Themes Playground if you build the playground for an Android device and run it on it. Then it will toggle the transparent status bar of the Playground itself when you try. The simulated apps are just mock paintings and do not have a status bar. The setting is ON by default, so in generated code it actually only writes it out if your turn it OFF: If a screen does not have an The themedSystemNavigationBarWhat FlexColorScheme does do though, is that it provides a static helper that is designed to be used with the This helper is called There is info in the FCS docs about it here: https://docs.flexcolorscheme.com/deep_dives#themed-system-navigation-bar-in-android And it is API docs are here: https://pub.dev/documentation/flex_color_scheme/latest/flex_color_scheme/FlexColorScheme/themedSystemNavigationBar.html In the "copy paste from playground" example app you can find a simple usage example here: The Themes Playground app also has a section and info about the Android system navigation bar. Where it also explains about it and that the features in it only works if build the Playground app for an Android app. Then using the toggles modify the settings for the app itself by adjusting corresponding values in Where that is happening and how it is done is here: Complicated Android system navigation barControlling the system navigation bar in Android in Flutter used to be difficult, here is an example of past issue that can be interesting to read to learn more about it: flutter/flutter#100027. This is a good issue with links to many topics on the matter System Navigation Bar complications in Android, some solved, some not: flutter/flutter#112301 Status in FCS?At the current of There are some older questions on this topic too in either issues or discussion, I'll edit attach a link if/when I find it. |
Beta Was this translation helpful? Give feedback.
Hi again @laterdayi 😄
FlexColorScheme only returns
ThemeData
and can only impact theSystemUiOverlayStyle
via things that are a part of theming. There is only one place where it currently is, theAppBarTheme
. In some issue Flutter requests I have wished that we could have more control via themes, but currently we cannot.If a screen has an
AppBar
, it can make the Android top status bar transparent. FlexColorScheme actually does so by default in both M2/M3 mode. This is my opinionated choice, since I think it looks much better. In M3 mode the Flutter Android default themedAppBar
is actually also transparent by default.You can actually only see the impact of this toggle in the Themes Pla…