Repositório GitHubSkyost/DayNightSwitcher

DayNightSwitcher

Um widget simples de alternância dia/noite feito em Dart puro.

Capa do projeto DayNightSwitcher
Estrelas
37
Forks
16
Último push (UTC)
21 de mar. de 2023
Status do projeto
Arquivado

README original

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

DayNightSwitcher

Just a simple simple day / night switcher widget made in pure Dart. It allows you to quickly show a beautiful dark mode switcher widget to your users.

How to use ?

Using this plugin is pretty straightforward. You have two widgets : DayNightSwitcher and DayNightSwitcherIcon.

Here's a sample code for DayNightSwitcher :

DayNightSwitcher(
  isDarkModeEnabled: isDarkModeEnabled,
  onStateChanged: (isDarkModeEnabled) {
    setState(() {
      this.isDarkModeEnabled = isDarkModeEnabled;
    });
  },
),

The other one is very similar :

DayNightSwitcherIcon(
  isDarkModeEnabled: isDarkModeEnabled,
  onStateChanged: (isDarkModeEnabled) {
    setState(() {
      this.isDarkModeEnabled = isDarkModeEnabled;
    });
  },
),

Contributions

You have a lot of options to contribute to this project ! You can :

Hugo Delaunay GitHub avatar
Autor no GitHub

Hugo Delaunay ↗

💻 Yet Another Developer

LinguagensDartKotlinSwiftObjective-C

Categorias

Dependências usadas

Lista de dependências 1 itens

  • flutter{"sdk":"flutter"}

Como escolher um repositório para seu projeto?

Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.

  1. Busque por nome, autor ou descrição e filtre por tema.
  2. Compare estrelas, forks e envios recentes. Estrelas indicam interesse, mas não garantem qualidade.
  3. Confira o README, a licença e as issues no GitHub antes de usar o projeto.

Fontes e manutenção

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗