Search packages, repositories and app categories

Package detailsv1.0.14

statusbarz

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

AndroidiOSWebmacOSWindowsLinux
30-day downloads
719
Likes
69
Pub points
150

Install package

flutter pub add statusbarz

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Statusbarz is a Flutter package that enables dynamic status bar color adjustments based on the underlying background, supporting both solid colors and images. It automatically adapts the status bar's appearance to ensure optimal visibility and aesthetic consistency across different UI contexts. Designed for cross-platform use, it works seamlessly on Android, iOS, Web, macOS, Windows, and Linux. The package simplifies the process of maintaining visual harmony between the status bar and app content without requiring manual configuration for each screen.

Use cases

  • Dynamic theme adaptation
  • Image-based status bar coloring
  • Cross-platform UI consistency
  • Enhanced visual design integration
  • Automatic contrast adjustment

Key features

  • Supports static colors and images
  • Auto-contrast optimization
  • Cross-platform compatibility
  • Simple API integration
  • Real-time color updates

Suitable for

  • Apps with variable backgrounds
  • Design-focused applications
  • Themed user interfaces
  • Mobile and desktop apps
  • Developers prioritizing visual polish

Considerations

  • Requires proper background context for best results
  • Limited customization beyond color
  • May need additional handling for complex layouts
  • Not suitable for static status bar designs
  • Depends on platform-specific rendering capabilities

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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(),
      ),
    ),
  );
}

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.