v1.0.14
statusbarz
一個用於根據背景動態變更狀態列顏色的 Flutter 套件。支援靜態顏色和影像。
69喜歡 719近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
您應用程式的動態狀態列
以下為英文專案原文快照,最新內容請造訪 GitHub。
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(),
),
),
);
}
依賴清單 5 項
{"sdk":"flutter"}^4.0.0^5.6.0{"sdk":"flutter"}^1.1.0先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗