v2.0.0
flutter_touch_spin
Flutter용 간단한 숫자 입력 스피너 위젯. Bootstrap Touchspin에서 영감을 받음
45좋아요 25930일 다운로드50Pub 점수
플랫폼 정보 없음
Flutter용 간단한 숫자 입력 스피너 위젯입니다.
{"sdk":"flutter"}^0.17.0^1.0.4{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Simple number input spinner Widget for Flutter. Inspired by Bootstrap Touchspin
TouchSpin(
min: 5,
max: 100,
step: 5,
value: 10,
displayFormat: NumberFormat.currency(locale: 'en_US', symbol: '\$'),
textStyle: const TextStyle(fontSize: 36),
iconSize: 48.0,
addIcon: const Icon(Icons.add_circle_outline),
subtractIcon: const Icon(Icons.remove_circle_outline),
iconActiveColor: Colors.green,
iconDisabledColor: Colors.grey,
iconPadding: const EdgeInsets.all(20),
onChanged: (val){
print(val);
},
),
| Attribute | Type | Default |
|---|---|---|
value |
num |
1 |
min |
num |
1 |
max |
num |
9999999 |
step |
num |
1 |
displayFormat |
NumberFormat |
|
textStyle |
TextStyle |
TextStyle(fontSize: 24) |
iconSize |
double |
24.0 |
addIcon |
Icon |
Icon(Icons.add) |
subtractIcon |
Icon |
Icon(Icons.remove) |
iconActiveColor |
Color |
Theme.of(context).textTheme.button.color |
iconDisabledColor |
Color |
Theme.of(context).disabledColor |
iconPadding |
EdgeInsetsGeometry |
EdgeInsets.all(4.0) |
onChanged |
ValueChanged<num> |