v1.0.0number_selection
クールな数字ピッカーのコンセプト
22いいね 4130日間ダウンロード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"),
);