FLUTTER ECOSYSTEM

Mankeli-Software/statusbarz

アプリ用の動的ステータスバー

statusbarz のプロジェクト画像
Stars
12
Forks
8
最終プッシュ(UTC)
2023/06/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(),
      ),
    ),
  );
}