countdown_flutter_ns

Creator: coderz1093

Last updated:

0 purchases

countdown_flutter_ns Image
countdown_flutter_ns Images

Languages

Categories

Add to Cart

Description:

countdown flutter ns

flutter-countdown #
A simple countdown plugin for flutter ⌛

Thanks to https://github.com/MohamedAbdallah-14/flutter-countdown for the migration.
Getting Started #
This project is a starting point for a Flutter
plug-in package,
a specialized package that includes platform-specific implementation code for
Android and/or iOS.
For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.
Usage #
Countdown
import 'package:flutter/material.dart';
import 'package:countdown_flutter_ns/countdown_flutter_ns.dart';

class Foo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Center(
child: Countdown(
duration: Duration(seconds: 10),
onFinish: () {
print('finished!');
},
builder: (BuildContext ctx, Duration remaining) {
return Text('${remaining.inMinutes}:${remaining.inSeconds}');
},
),
);
}
}

copied to clipboard
CountdownFormatted
import 'package:flutter/material.dart';
import 'package:countdown_flutter_ns/countdown_flutter_ns.dart';

class Foo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Center(
child: CountdownFormatted(
duration: Duration(hours: 1),
builder: (BuildContext ctx, String remaining) {
return Text(remaining); // 01:00:00
},
),
);
}
}

copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.