Package selection guidance compiled from public package information, community data, and project usage.
The timeago package provides a simple way to generate human-readable, fuzzy timestamps such as "15 minutes ago" or "2 days ago". It is ideal for displaying relative time in apps, improving user experience by making time more intuitive. The library supports multiple languages and is compatible across all major platforms including Android, iOS, Web, macOS, Windows, and Linux. It integrates seamlessly with Flutter projects via a straightforward API.
Use cases
Displaying post timestamps in social media apps
Showing activity times in chat interfaces
Enhancing user experience with readable time labels
Tracking event durations in dashboards
Synchronizing real-time updates with relative time
Updating UI dynamically with current time differences
Key features
Supports multiple languages
Easy integration with Flutter
Cross-platform compatibility
Customizable formatting options
Automatic time updates
Lightweight and efficient
Suitable for
Social media applications
Real-time messaging apps
Dashboard widgets
User activity tracking systems
Any app needing human-readable timestamps
Considerations
Requires manual handling of time zone differences
May need localization setup for non-English languages
Does not support absolute date formatting
Limited to relative time display
Not suitable for precise timestamp storage
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
timeago
timeago is a dart library that converts a date into a humanized text. Instead of showing a date 2020-12-12 18:30 with timeago you can display something like "now", "an hour ago", "~1y", etc
timeago
core library
timeago_flutter
flutter widgets
The easiest way to use this library via top-level function format(date):