v1.0.0switcher
一個美觀的、帶有動畫效果且可個性化設定的開關組件。
45喜歡 211近 30 天下載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.