yako_theme_switch 2.0.0 copy "yako_theme_switch: ^2.0.0" to clipboard
yako_theme_switch: ^2.0.0 copied to clipboard

Custom switch that looks good for changing the theme of the app

Yako Theme Switch #

Just a cool switch for your app's theme

Installing: #

In your pubspec.yaml

dependencies:
  yako_theme_switch: ^2.0.0

Basic Usage: #

    YakoThemeSwitch(
      enabled: themeMode == ThemeMode.light,
      onChanged: (bool value) {
        setState(() => themeMode = value ? ThemeMode.light : ThemeMode.dark);
      },
    );

Advanced usage #

    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,
    ),

Check out other Yako packages: #

Badges

Settings UI

Status Alert

Full Screen Menu

Diagonal decoration

and more to come!

31
likes
160
points
97
downloads
screenshot

Documentation

API reference

Publisher

verified publisheryako.io

Weekly Downloads

Custom switch that looks good for changing the theme of the app

Repository (GitHub)
View/report issues

Topics

#ui

License

MIT (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on yako_theme_switch