v2.0.1stepper_counter_swipe
一個用於提升使用者體驗的 Flutter 步進器小部件。有一個快速計數的點擊區域。
129喜歡 364近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
burakozyurt/stepper_counter_swipe open-source repository details.
以下為英文專案原文快照,最新內容請造訪 GitHub。
This concept of the widget is inspired by Nikolay Kuchkarov. Designers asked his what if a user swipes left and will hold such type of button. Could this stepper count faster? I released this version with more functionality in this subject.


import 'package:stepper_counter_swipe/stepper_counter_swipe.dart';
...
Container(
padding: const EdgeInsets.all(8.0),
child: StepperSwipe(
initialValue:0,
speedTransitionLimitCount: 3, //Trigger count for fast counting
onChanged: (int value) => print('new value $value'),
firstIncrementDuration: Duration(milliseconds: 250), //Unit time before fast counting
secondIncrementDuration: Duration(milliseconds: 100), //Unit time during fast counting
direction: Axis.horizontal,
dragButtonColor: Colors.blueAccent,
maxValue: 50,
minValue: -10,
),
),
...
For help getting started with Flutter, view our online documentation.
依賴清單 2 項
{"sdk":"flutter"}{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗