v1.0.1counter_button
카운터 버튼은 카운터 값을 증가 또는 감소할 때 애니메이션 효과가 있는 버튼을 만들 수 있도록 해주는 플러터 라이브러리입니다。
31좋아요 15230일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
카운터 버튼 플러터 플러그인
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
pub package GitHub stars GitHub forks GitHub license GitHub issues
Counter Button is a flutter library that allows you to create a button with animation effects when you increase or decrease the counter value.
Demo Loading demo
dependencies:
counter_button: ^1.0.1
import 'package:counter_button/counter_button.dart';
CounterButton(
loading: false,
onChange: (int val) {
setState(() {
_counterValue = val;
});
},
count: _counterValue,
countColor: Colors.purple,
buttonColor: Colors.purpleAccent,
progressColor: Colors.purpleAccent,
)
| parameter | description | default |
|---|---|---|
| count | Value of the counter | |
| countColor | Color of the counter | Colors.black |
| onChange | Value change callback when the buttons are pressed | |
| loading | For showing the linear progress indicator | |
| progressColor | Color of the progress indicator | Colors.black |
| buttonColor | Color of the icon button | Colors.black |
| addIcon | Add button icon | |
| removeIcon | Remove button icon | const Icon(Icons.remove) |
If you encounter any bugs feel free to open an issue. Raise a ticket on github for suggestions. Pull request are also welcome.
For help getting started with Flutter, view our online documentation.
For help on editing plugin code, view the documentation.
MIT License