timercounter 0.0.1 copy "timercounter: ^0.0.1" to clipboard
timercounter: ^0.0.1 copied to clipboard

outdated

倒计时工具.

timercounter #

倒计时工具.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.


class _SmsCounterViewState extends State<SmsCounterView> {
    TimeTool _timer;
    int counter = 59;

    @override
    void initState() {
    super.initState();
    _beginTimer();
}

@override
void dispose() {
    _timer.stop();
    super.dispose();
}
void _beginTimer() {
    _timer = TimeTool.begin(duration: 59, callback:(timerCount){ 
        // do somthing ...
    });
}

1
likes
0
pub points
31%
popularity

Publisher

unverified uploader

倒计时工具.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on timercounter