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

Latest commit

 

History

History
45 lines (29 loc) · 1.28 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.28 KB

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)