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 ↗