FLUTTER ECOSYSTEM

Mankeli-Software/statusbarz

Barra de status dinâmica para o seu aplicativo

Capa do projeto statusbarz
Stars
12
Forks
8
Último push (UTC)
28 de jun. de 2023
Status do projeto
Ativo
Mankeli-Software GitHub avatar
GITHUB Organization

Mankeli-Software ↗

LinguagensDartSwiftKotlinObjective-C

Tópicos técnicos

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 5 itens
  • flutter{"sdk":"flutter"}
  • image^4.0.0
  • dart_code_metricsDesenvolvimento^5.6.0
  • flutter_testDesenvolvimento{"sdk":"flutter"}
  • mankeli_analysisDesenvolvimento^1.1.0

README original

Texto original em inglês. Visite o GitHub para a versão atual.

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