@@ -17,28 +17,39 @@ dependencies:
1717
1818## Basic Usage:
1919` ` ` dart
20- return Container(
21- width : 200,
22- height : 200,
23- decoration : DiagonalDecoration(),
20+ YakoThemeSwitch(
21+ enabled : themeMode == ThemeMode.light,
22+ onChanged : ({bool? changed}) {},
2423 );
2524```
2625## Advanced usage
2726``` dart
28- decoration: const DiagonalDecoration(
29- lineColor: Colors.black,
30- backgroundColor: Colors.grey,
31- radius: Radius.circular(20),
32- lineWidth: 1,
33- distanceBetweenLines: 5,
34- )
27+ YakoThemeSwitch(
28+ enabled: themeMode == ThemeMode.light,
29+ onChanged: ({bool? changed}) {},
30+ width: 50,
31+ enabledBackgroundColor: Colors.blue,
32+ disabledBackgroundColor: Colors.red,
33+ enabledToggleColor: Colors.white,
34+ disabledToggleColor: Colors.white,
35+ animationDuration: const Duration(milliseconds: 300),
36+ enabledToggleBorderRadius: 8,
37+ ),
3538```
3639
3740<br >
3841
3942
40- Check out other Yako packages:
41- [ Badges] ( https://pub.dev/packages/badges ) ,
42- [ Settings UI] ( https://pub.dev/packages/settings_ui ) ,
43- [ Status Alert] ( https://pub.dev/packages/status_alert ) ,
44- [ Full Screen Menu] ( https://pub.dev/packages/full_screen_menu ) and more to come!
43+ ## Check out other Yako packages:
44+
45+ [ Badges] ( https://pub.dev/packages/badges )
46+
47+ [ Settings UI] ( https://pub.dev/packages/settings_ui )
48+
49+ [ Status Alert] ( https://pub.dev/packages/status_alert )
50+
51+ [ Full Screen Menu] ( https://pub.dev/packages/full_screen_menu )
52+
53+ [ Diagonal decoration] ( https://pub.dev/packages/diagonal_decoration )
54+
55+ and more to come!
0 commit comments