Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiteshgarg002/otp_count_down
A dart package for easy implementation of OTP count down.
https://github.com/hiteshgarg002/otp_count_down
dart dart-package dart-packages dart2 flutter flutter-apps
Last synced: about 2 months ago
JSON representation
A dart package for easy implementation of OTP count down.
- Host: GitHub
- URL: https://github.com/hiteshgarg002/otp_count_down
- Owner: hiteshgarg002
- License: mit
- Created: 2020-02-09T15:34:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-23T14:22:58.000Z (almost 5 years ago)
- Last Synced: 2024-10-13T08:42:11.672Z (3 months ago)
- Topics: dart, dart-package, dart-packages, dart2, flutter, flutter-apps
- Language: Dart
- Homepage:
- Size: 66.4 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# otp_count_down
Easily implement the count down timer in Flutter Application.
# Usage
Import `package:otp_count_down/otp_count_down.dart`
Example:
```dart
import 'package:otp_count_down/otp_count_down.dart';OTPCountDown _otpCountDown; // create instance
final int _otpTimeInMS = 1000 * 5 * 60; // time in milliseconds for count down_otpCountDown = OTPCountDown.startOTPTimer(
timeInMS: _otpTimeInMS, // time in milliseconds
currentCountDown: (String countDown) {
print("Count down : $countDown"); // shows current count down time
},
onFinish: () {
print("Count down finished!"); // called when the count down finishes.
},
);
```You will find links to the API docs on the [pub page](https://pub.dev/packages/otp_count_down).
## Getting Started
For help getting started with Flutter, view our online
[documentation](http://flutter.io/).For help on editing plugin code, view the [documentation](https://flutter.io/platform-plugins/#edit-code).