Skip to content
pubscout

timeago_flutter

3.7.0, released 2 years ago by an unverified publisher

Flutter widgets and helpers to convert dates into humanized fuzzy timestamps like '15 minutes ago'.

WASM-readyQuiet but busy
$ flutter pub add timeago_flutter
Source repository

What it does

Converts DateTime instances into human-readable fuzzy text representations. Provides Flutter widgets like Timeago and TimerRefresh to automatically display and update relative time strings.

AI-written summary of version 3.7.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to display relative timestamps such as 'an hour ago' in a Flutter app.
  • You need automatic timer refreshing for relative timestamps in UI widgets.

Skip it when

  • You need complex calendar calculations or internationalized date formatting outside of fuzzy time strings.

Strengths

  • Simple API with built-in Flutter widgets for auto-refreshing timestamps.
  • Supports custom messages and multiple locales.

Weaknesses

  • Only includes English and Spanish messages by default; additional locales must be registered manually.
  • Deliberately limited scope to keep maintenance minimal.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Not documented

import 'package:timeago/timeago.dart' as timeago;

main() {
    final fifteenAgo = DateTime.now().subtract(Duration(minutes: 15));
    print(timeago.format(fifteenAgo)); // 15 minutes ago
}

Alternatives

Packages that do the same job and could replace timeago_flutter.

Works with

Packages commonly used together with timeago_flutter: ones it builds on, ones built on it, and its own family.