FLUTTER ECOSYSTEM

Mankeli-Software/statusbarz

您应用程序的动态状态栏

statusbarz 项目封面
Stars
12
Forks
8
最近推送(UTC)
2023年6月28日
项目状态
未归档
Mankeli-Software GitHub avatar
GITHUB Organization

Mankeli-Software ↗

语言DartSwiftKotlinObjective-C

技术话题

此仓库发布的插件

使用的依赖

依赖清单 5 项
  • flutter{"sdk":"flutter"}
  • image^4.0.0
  • dart_code_metrics开发依赖^5.6.0
  • flutter_test开发依赖{"sdk":"flutter"}
  • mankeli_analysis开发依赖^1.1.0

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

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