v3.0.1
yako_theme_switch
Interruptor personalizado que tem bom aspecto para alterar o tema do aplicativo
31Curtidas 183Downloads em 30 dias160Pontos Pub
AndroidiOSWebmacOSWindowsLinux
Apenas uma troca legal para o tema do seu aplicativo
{"sdk":"flutter"}^2.2.3{"sdk":"flutter"}^1.0.4^6.0.0Texto original em inglês. Visite o GitHub para a versão atual.
Just a cool switch for your app's theme
https://github.com/yako-dev/flutter-yako-theme-switch/blob/main/assets/showcase_animation.gif?raw=true
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!