FLUTTER ECOSYSTEM

Skyost/DayNightSwitcher

순수한 Dart로 만든 간단한 낮/밤 전환 위젯입니다.

DayNightSwitcher 프로젝트 이미지
Stars
37
Forks
16
최근 푸시(UTC)
2023. 3. 21.
프로젝트 상태
보관됨
Hugo Delaunay GitHub avatar
GITHUB User

Hugo Delaunay ↗

💻 Yet Another Developer

언어DartKotlinSwiftObjective-C

기술 주제

사용 중인 의존성

의존성 목록 1 개
  • flutter{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

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.

https://github.com/Skyost/DayNightSwitcher/raw/master/screenshots/preview.gif

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 :