statusbarz 1.0.14 copy "statusbarz: ^1.0.14" to clipboard
statusbarz: ^1.0.14 copied to clipboard

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

statusbarz #

[CI] style: mankeli analysis pub package License

"Buy Me A Coffee"

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(),
      ),
    ),
  );
}
54
likes
140
pub points
88%
popularity

Publisher

verified publishermankeli.co

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

BSD-3-Clause (LICENSE)

Dependencies

flutter, image

More

Packages that depend on statusbarz