statusbarz 1.0.11 icon indicating copy to clipboard operation
statusbarz: ^1.0.11 copied to clipboard

A Flutter package for dynamically changing status bar color based on the background. Works with static colors and images.

Dynamic status bar plugin #

Features #

A Flutter package for dynamically changing status bar color based on the background. Can be set up to automatically change the color whenever the current route is changed. It is also possible to manually refresh the color.

Usage #

Place StatusbarzCapturer above your MaterialApp widget:

void main() {
  runApp(
    StatusbarzCapturer(
      child: MaterialApp(
        home: Container(),
      ),
    ),
  );
}

Now you can manually refresh status bar color by calling:

Statusbarz.instance.refresh();

Or alternatively you can refresh automatically when the current route changes. To do this, simply add Statusbarz.instance.observer to your MaterialApps navigatorObservers:

void main() {
  runApp(
    StatusbarzCapturer(
      child: MaterialApp(
        navigatorObservers: [Statusbarz.instance.observer],
        home: Container(),
      ),
    ),
  );
}
25
likes
130
pub points
86%
popularity

Publisher

verified publisher iconmapventure.com

A Flutter package for dynamically changing status bar color based on the background. Works with static colors and images.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, image

More

Packages that depend on statusbarz