v1.0.0number_selection
酷炫的数字选择器概念
22喜欢 41近 30 天下载130Pub 分数
AndroidiOSWebmacOSWindowsLinux
Flutter 数字选择包
{"sdk":"flutter"}以下为英文项目原文快照,最新内容请访问 GitHub。
Demo
import 'package:number_selection/number_selection.dart';
NumberSelection(
theme: NumberSelectionTheme(
draggableCircleColor: Colors.blue,
iconsColor: Colors.white,
numberColor: Colors.white,
backgroundColor: Colors.deepPurpleAccent,
outOfConstraintsColor: Colors.deepOrange),
initialValue: 1,
minValue: -10,
maxValue: 10,
direction: Axis.vertical,
withSpring: true,
onChanged: (int value) => print("value: $value"),
enableOnOutOfConstraintsAnimation: true,
onOutOfConstraints: () => print("This value is too high or too low"),
);