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.

Getting Started

Adding package

time_remaining: ^1.0.2

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,
  ),
)

Libraries

time_remaining