v1.0.0switcher
美しいアニメーション付きで、カスタマイズ可能なスイッチャー・ウィジェットコンポーネント。
45いいね 21130日間ダウンロード140Pub ポイント
AndroidiOSWebmacOSWindowsLinux
美しいカスタマイズ可能なスイッチャー コンポーネント
{"sdk":"flutter"}{"sdk":"flutter"}以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Based on Eduardo Muñoz's widget lite_rolling_switch
A animated and beautiful Switcher
In pubspec.yaml:
dependencies:
switcher: any
import 'package:switcher/switcher.dart';
Switcher(
value: false,
size: SwitcherSize.large,
switcherButtonRadius: 50,
enabledSwitcherButtonRotate: true,
iconOff: Icons.lock,
iconOn: Icons.lock_open,
colorOff: Colors.blueGrey.withOpacity(0.3),
colorOn: Colors.blue,
onChanged: (bool state) {
//
},
),
Switcher(
value: false,
size: SwitcherSize.large,
switcherButtonRadius: 50,
iconOff: null,
enabledSwitcherButtonRotate: false,
colorOff: Colors.blueGrey.withOpacity(0.3),
colorOn: Colors.blue,
onChanged: (bool state) {
//
},
),
Please send feature requests and bugs at the issue tracker.