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
- Host: GitHub
- URL: https://github.com/yako-dev/flutter-yako-theme-switch
- Owner: yako-dev
- License: mit
- Created: 2023-07-09T19:21:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-19T10:44:43.000Z (almost 2 years ago)
- Last Synced: 2025-01-10T06:11:17.323Z (9 months ago)
- Topics: android, dart, flutter, flutter-package, flutter-ui, ios, mobile, package, ui, ui-components, widget
- Language: C++
- Homepage: https://pub.dev/packages/yako_theme_switch
- Size: 931 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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!