An open API service indexing awesome lists of open source software.

https://github.com/yako-dev/flutter-yako-theme-switch

Just a cool switch for your app's theme
https://github.com/yako-dev/flutter-yako-theme-switch

android dart flutter flutter-package flutter-ui ios mobile package ui ui-components widget

Last synced: 7 months ago
JSON representation

Just a cool switch for your app's theme

Awesome Lists containing this project

README

          

# Yako Theme Switch

Just a cool switch for your app's theme



## Installing:
In your pubspec.yaml
```yaml
dependencies:
yako_theme_switch: ^1.0.0
```

## Basic Usage:
```dart
YakoThemeSwitch(
enabled: themeMode == ThemeMode.light,
onChanged: ({bool? changed}) {},
);
```
## Advanced usage
```dart
YakoThemeSwitch(
enabled: themeMode == ThemeMode.light,
onChanged: ({bool? changed}) {},
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](https://pub.dev/packages/badges)

[Settings UI](https://pub.dev/packages/settings_ui)

[Status Alert](https://pub.dev/packages/status_alert)

[Full Screen Menu](https://pub.dev/packages/full_screen_menu)

[Diagonal decoration](https://pub.dev/packages/diagonal_decoration)

and more to come!