v2.0.1stepper_counter_swipe
사용자 경험을 향상시키기 위한 플러터 스탭퍼 위젯입니다. 빠른 카운트를 위한 히트 존이 있습니다.
burakozyurt/stepper_counter_swipe open-source repository details.
{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 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.
https://github.com/burakozyurt/stepper_counter_swipe/blob/master/documents/blue.gif?raw=true https://github.com/burakozyurt/stepper_counter_swipe/blob/master/documents/green.gif?raw=true https://github.com/burakozyurt/stepper_counter_swipe/blob/master/documents/red.gif?raw=true
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.