time_remaining 2.0.0+1 copy "time_remaining: ^2.0.0+1" to clipboard
time_remaining: ^2.0.0+1 copied to clipboard

time_remaining tells you in the form of a countdown the exact time remaining until the time you want is fulfilled.

time_remaining #

pub package License: MIT

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");
  },
)
7
likes
140
pub points
79%
popularity

Publisher

unverified uploader

time_remaining tells you in the form of a countdown the exact time remaining until the time you want is fulfilled.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on time_remaining