Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

g123k/flutter-screen-theme-plugin

Repository files navigation

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)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published