flutter_statusbarcolor
A package can help you to change your flutter app's statusbar's color or navigationbar's color programmatically.
Getting Started
Installation
Add this to your pubspec.yaml (or create it):
Then run the flutter tooling:
Example
Details in example/ folder.
Api level minimum requirement
-
android
- getStatusBarColor (5.0)
- setStatusBarColor (5.0)
- setStatusBarWhiteForeground (6.0)
- getNavigationBarColor (5.0)
- setNavigationBarColor (5.0)
- setNavigationBarWhiteForeground (8.0)
-
ios
- getStatusBarColor (7+)
- setStatusBarColor (7+)
- setStatusBarWhiteForeground (7+)
Note that
- If you find the foreground brightness reverted after changing the app lifecycle,
please use flutter's WidgetsBindingObserver mixin. - If ios build does not work, please send issues or pull requests.