FLUTTER ECOSYSTEM

danvick/flutter_touch_spin

適用於 Flutter 的簡單數字輸入旋轉器小部件。

flutter_touch_spin 專案封面
Stars
11
Forks
24
最近推送(UTC)
2024年5月21日
專案狀態
未封存
Danvick Miller GitHub avatar
GITHUB User

Danvick Miller ↗

Dart and Flutter . PHP . JS/TS

語言DartRubySwiftKotlinObjective-C

此儲存庫發佈的套件

使用的依賴

依賴清單 4 項
  • flutter{"sdk":"flutter"}
  • intl^0.17.0
  • flutter_lints開發依賴^1.0.4
  • flutter_test開發依賴{"sdk":"flutter"}

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

flutter_touch_spin

Simple number input spinner Widget for Flutter. Inspired by Bootstrap Touchspin


Screenshot

Getting Started

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);
    },
),

Attributes

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>