counter 0.2.0 counter: ^0.2.0 copied to clipboard
一个计数器Flutter Widget,可支持配置min/max/initial/bound/step,外观也可配置。
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add counter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
counter: ^0.2.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:counter/counter.dart';