statusbarz
Um pacote Flutter para alterar dinamicamente a cor da barra de status com base no fundo. Funciona com cores estáticas e imagens.
Barra de status dinâmica para o seu aplicativo
{"sdk":"flutter"}^4.0.0^5.6.0{"sdk":"flutter"}^1.1.0Texto original em inglês. Visite o GitHub para a versão atual.
[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(),
),
),
);
}