All Projects → Skyost → DayNightSwitcher

Skyost / DayNightSwitcher

Licence: MIT License
A simple day / night switcher widget made in pure Dart.

Programming Languages

dart
5743 projects
kotlin
9241 projects
swift
15916 projects
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to DayNightSwitcher

Appearance-figma-plugin
Figma plugin. This plugin generates a dark/light theme from your selection.
Stars: ✭ 36 (-2.7%)
Mutual labels:  day-night-mode

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 :

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].