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