time_remaining
time_remaining tells you in the form of a countdown the exact time remaining until the time you want is fulfilled.
Screenshot
Examples |
---|
Getting Started
Adding package
time_remaining: ^2.0.0+1
Importing package
import 'package:time_remaining/time_remaining.dart';
Example
TimeRemaining(
duration: Duration(hours: 1),
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
),
warningDuration: Duration(minutes: 30),
warningsStyle: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
color: ColorsApp.warning,
),
dangerDuration: Duration(minutes: 10),
dangerStyle: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
color: ColorsApp.error,
),
onTimeOver: () {
print("TIME OVER");
},
)