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 ↗