v1.0.1counter_button
计数器按钮是一个 Flutter 库,允许您在增加或减少计数器值时创建带有动画效果的按钮。
31喜欢 270近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
计数器按钮 Flutter 插件
以下为英文项目原文快照,最新内容请访问 GitHub。
Counter Button is a flutter library that allows you to create a button with animation effects when you increase or decrease the counter value.

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
依赖清单 3 项
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗