custom_counts_down 0.0.2 copy "custom_counts_down: ^0.0.2" to clipboard
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
30
pub points
0%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on custom_counts_down