count_down_timer 1.0.0 copy "count_down_timer: ^1.0.0" to clipboard
count_down_timer: ^1.0.0 copied to clipboard

outdated

A new Flutter countdown project that can be used to send SMS verification code scenarios

count_down_timer #


A new Flutter countdown project that can be used to send SMS verification code scenarios


How to Use #

# add this line to your dependencies
count_down_timer: ^0.0.5
import 'package:count_down_timer/count_down_timer.dart';

CountDownWidget(
        startSeconds: 60,
        onTapCallback: (timer) {
          print('onTapCallback:current is ${timer.tick}s');
        },
        decoration: BoxDecoration(
                                  color: Color(0xffffffff),
                                  borderRadius: BorderRadius.all(Radius.circular(5)),
                                  border: Border.all(
                                    width: 1,
                                    color: Color(0xfff4f4f4),
                                  ),
                                ),
        phone: 'your phone number by input'
        padding: EdgeInsets.all(10),
        language: CountDown.EN,
        verifyStr: "Send",
        enableTS: TextStyle(color: const Color(0xff000000)),
        disableTS: TextStyle(color: const Color(0xff999999)),
      )

API #

property description defaultValue
startSeconds int 60
onTapCallback Function (timer)
enableTS TextStyle : clickable TextStyle TextStyle(color: const Color(0xff000000))
disableTS TextStyle : unclickable TextStyle TextStyle(fontSize: 16, color: const Color(0xff999999))
verifyStr String
language CountDown.EN or CountDown.ZH
phone String: your phone number by input
decoration Decoration: decoration for container
padding EdgeInsetsGeometry: padding for container

[https://pub.flutter-io.cn/packages/count_down_timer] #

3
likes
20
pub points
8%
popularity

Publisher

unverified uploader

A new Flutter countdown project that can be used to send SMS verification code scenarios

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, fluttertoast

More

Packages that depend on count_down_timer