v1.0.14
statusbarz
배경에 따라 상태 표시줄 색상을 동적으로 변경하는 Flutter 패키지입니다. 정적 색상과 이미지와 함께 작동합니다.
69좋아요 42030일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
앱용 동적 상태 표시줄
{"sdk":"flutter"}^4.0.0^5.6.0{"sdk":"flutter"}^1.1.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
[CI] style: mankeli analysis pub package License
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.
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(),
),
),
);
}