lit_relative_date_time 1.2.0 lit_relative_date_time: ^1.2.0 copied to clipboard
A Flutter package to generate relative dates to show differences in time in localized and human-readable format.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add lit_relative_date_time
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
lit_relative_date_time: ^1.2.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:lit_relative_date_time/lit_relative_date_time.dart';