FLUTTER ECOSYSTEM

yako-dev/flutter-yako-theme-switch

アプリのテーマ用のクールなスイッチ

flutter-yako-theme-switch のプロジェクト画像
Stars
1
Forks
0
最終プッシュ(UTC)
2026/04/09
プロジェクト状態
公開中
Yako GitHub avatar
GITHUB Organization

Yako ↗

Great mobile apps with Flutter

言語C++CMakeDartHTMLSwiftCKotlinObjective-C

技術トピック

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 5 件

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

Yako Theme Switch

Just a cool switch for your app's theme

https://github.com/yako-dev/flutter-yako-theme-switch/blob/main/assets/showcase_animation.gif?raw=true

Installing:

In your pubspec.yaml

dependencies:
  yako_theme_switch: ^2.0.0

Basic Usage:

    YakoThemeSwitch(
      enabled: themeMode == ThemeMode.light,
      onChanged: (bool value) {
        setState(() => themeMode = value ? ThemeMode.light : ThemeMode.dark);
      },
    );

Advanced usage

    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,
    ),

Check out other Yako packages:

Badges

Settings UI

Status Alert

Full Screen Menu

Diagonal decoration

and more to come!