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