Skip to content
pubscout

statusbarz

1.0.14, released 4 years ago by mankeli.co

Dynamically change the status bar color based on the background or current route.

WASM-ready
$ flutter pub add statusbarz
Source repository

What it does

A Flutter package for dynamically changing the status bar color based on the background. It works with static colors and images, and can automatically update when the current route changes using a navigator observer.

AI-written summary of version 1.0.14, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need the status bar color to automatically adapt to background colors or images.
  • You want automatic status bar updates on route changes via navigator observers.

Skip it when

  • You only need a static, globally fixed status bar color configured once in your app theme.
  • You do not use standard Navigator routing.

Strengths

  • Supports automatic status bar updates on route changes.
  • Works with both static colors and images.
  • Allows manual refresh and direct setting of light/dark status bars.

Weaknesses

  • Requires placing `StatusbarzCapturer` above the `MaterialApp`.
  • Limited documentation on advanced configurations.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Place StatusbarzCapturer above your MaterialApp and optionally add Statusbarz.instance.observer to navigatorObservers.

void main() {
  runApp(
    StatusbarzCapturer(
      child: MaterialApp(
        navigatorObservers: [Statusbarz.instance.observer],
        home: Container(),
      ),
    ),
  );
}

Alternatives

Packages that do the same job and could replace statusbarz.

Works with

Packages commonly used together with statusbarz: ones it builds on, ones built on it, and its own family.