screentheme 0.0.2 copy "screentheme: ^0.0.2" to clipboard
screentheme: ^0.0.2 copied to clipboard

discontinued

Flutter plugin to change the theme (light / dark) of the status & navigation bars

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.

Compatibility: Android only

Android 5.0 (Lollipop) and above: color

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

0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Flutter plugin to change the theme (light / dark) of the status & navigation bars

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on screentheme