v3.0.1
yako_theme_switch
Benutzerdefinierter Schalter, der gut aussieht, um das Thema der App zu ändern
31Likes 2430-Tage-Downloads160Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
Ein cooler Schalter für das Thema Ihrer App
Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
Just a cool switch for your app's theme

In your pubspec.yaml
dependencies:
yako_theme_switch: ^2.0.0
YakoThemeSwitch(
enabled: themeMode == ThemeMode.light,
onChanged: (bool value) {
setState(() => themeMode = value ? ThemeMode.light : ThemeMode.dark);
},
);
YakoThemeSwitch(
enabled: themeMode == ThemeMode.light,
onChanged: (bool value) {
setState(() => themeMode = value ? ThemeMode.light : ThemeMode.dark);
},
width: 50,
enabledBackgroundColor: Colors.blue,
disabledBackgroundColor: Colors.red,
enabledToggleColor: Colors.white,
disabledToggleColor: Colors.white,
animationDuration: const Duration(milliseconds: 300),
enabledToggleBorderRadius: 8,
),
and more to come!
Abhängigkeiten 5 Einträge
{"sdk":"flutter"}^2.2.3{"sdk":"flutter"}^1.0.4^6.0.0Nach Anwendungsfall filtern, Aktivität vergleichen und vor der Nutzung das Originalprojekt prüfen.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗