v1.0.0switcher
一个美观的、带有动画效果且可个性化设置的开关组件。
45喜欢 354近 30 天下载140Pub 分数
AndroidiOSWebmacOSWindowsLinux
一个美观且个性化的切换组件
以下为英文项目原文快照,最新内容请访问 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.
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗