timer_count_down
सरल गिनती टाइमर। एक सरल टाइमर बनाने के लिए उपयोग किया जाता है। शुद्ध सभी
Flutter के लिए सरल गणना (टाइमर)
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A highly customizable countdown widget for Flutter, with support for custom styling, intervals, and onFinished callbacks.
dependencies:
flutter:
sdk: flutter
timer_count_down: ^2.2.2
Run this in your terminal or click on pub get
$ flutter pub get
Simple example for the usage of the package is shown below.
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Countdown(
seconds: 20,
build: (BuildContext context, double time) => Text(time.toString()),
interval: Duration(milliseconds: 100),
onFinished: () {
print('Timer is done!');
},
);
}
}
For pause, restart and resume you need to use CountdownController.
For an example of using the package, please check the example folder. Otherwise, keep reading and keep going!
निर्भरता सूची 3 आइटम
{"sdk":"flutter"}^1.3.0^1.9.0उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗