custom_counts_down 0.0.2
custom_counts_down: ^0.0.2 copied to clipboard

一个flutter自定义倒计时按钮插件

flutter_count_down #

一个倒计时计时器效果的按钮

Getting Started #


HSYCountDownButton(
                        maxTimes: 60,
                        onCurrentTimes: () {
                          return _currentTimes2;
                        },
                        changedStreamController: _streamController2,
                        textStyle: TextStyle(
                          fontSize: 20,
                          color: Colors.amber,
                        ),
                        padding: EdgeInsets.symmetric(
                          horizontal: 20,
                          vertical: 20,
                        ),
                        onTap: (int maxTimes, int minTimes) {
                          return Future.value(true);
                        },
                        onTimerChanged: (int currentTimes, int residueTimes,
                            HSYTimerState state) {
                          _currentTimes2 = residueTimes;
                          print(
                              'currentTimes: $currentTimes, residueTimes: $residueTimes, state: ${state.toString()}');
                        },
                        onDefaultText: (bool isEndedStateCallBack) {
                          return (isEndedStateCallBack
                              ? "Reset!"
                              : "Let's Go!");
                        },
                      ),

1
likes
100
pub points
12%
popularity

Publisher

Unknown

一个flutter自定义倒计时按钮插件

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on custom_counts_down