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'.
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.
- get_time_ago
Relative time formatting for Dart and Flutter supporting 22 locales and CLDR plurals.
82Compare - flutter_flavorizr
A utility to easily create and configure application flavors in Flutter.
86Compare - flutter_timeago_pro
Formats nullable DateTime into human‑friendly relative or absolute timestamps.
66Compare - time_ago_provider
Generate fuzzy timestamps like "9 minutes ago" in many languages
46Compare
Works with
Packages commonly used together with timeago_flutter: ones it builds on, ones built on it, and its own family.