All Projects → g123k → flutter-screen-theme-plugin

g123k / flutter-screen-theme-plugin

Licence: Apache-2.0 license
Flutter plugin to change the theme (light / dark) of the status & navigation bars (Android & iOS)

Programming Languages

dart
5743 projects
java
68154 projects - #9 most used programming language
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Flutter Screen Theme plugin

This plugin for Flutter adds the ability to change the status bar theme: light or dark (Android and iOS). It also provides the ability to change the navigation bar theme and color (Android only)

Demo App

Getting Started

On iOS only, please add in your Info.plist:

<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>

Then you just have to import the package in your dart files with

import 'package:screentheme/screentheme.dart';

For each call, you can specify which platform you want to target (by default both):

ScreenTheme.darkStatusBar(platform: Platform.Android);

Each call returns a boolean, which is true when the platform and the OS version support the feature. For the navigation bar, all calls will throw a MissingPluginException.

Status bar

Compatibility: Android (6.0+) & iOS

On Android, it will only work with Android 6.0 (Marshmallow) and above devices.

Navigation bar

Compatibility: Android only

Android 5.0 (Lollipop) and above: color

Android 8.0 (Oreo) and above: theme (dark/light)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].