Skyost/DayNightSwitcher
शुद्ध डार्ट में बना एक सरल दिन / रात स्विचर विजेट।
GitHub पर देखें ↗आर्काइव
- Stars
- 37
- Forks
- 16
- अंतिम पुश (UTC)
- 21 मार्च 2023
- प्रोजेक्ट स्थिति
- आर्काइव
भाषाएँ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.gifHow 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 :
- Fork it on Github.
- Submit a feature request or a bug report.
- Donate to the developer.
- Watch a little ad on Clipeee.