v3.0.1
yako_theme_switch
用于更改应用主题的外观良好的自定义开关
31喜欢 24近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
您应用程序主题的酷炫开关
以下为英文项目原文快照,最新内容请访问 GitHub。
Just a cool switch for your app's theme

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!
依赖清单 5 项
{"sdk":"flutter"}^2.2.3{"sdk":"flutter"}^1.0.4^6.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗