FLUTTER ECOSYSTEM

calendar_time

Implementation of MomentJS's calendar time, plus a bunch of other helper methods.

Latest version
2.3.0
30-day downloads
80
Likes
27
Pub points
130

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Flutter/Dart package that implements MomentJS's calendar time formatting, offering intuitive relative time displays like 'in 2 hours' or '2 days ago'. It includes additional helper methods for date manipulation and formatting, making it easier to work with timestamps in user-facing applications. Designed for cross-platform use, it supports Android, iOS, Web, macOS, Windows, and Linux. The package simplifies the presentation of time differences in a human-readable format, enhancing UX in apps requiring dynamic time displays.

Use cases
  • Displaying relative timestamps in chat apps
  • Showing post or activity ages in social feeds
  • Formatting time differences in notifications
  • Enhancing user experience with readable time labels
  • Simplifying date logic in task management apps
Key features
  • MomentJS-style calendar time formatting
  • Cross-platform compatibility
  • Helper methods for date operations
  • Human-readable time expressions
  • Easy integration via pub add command
Suitable for
  • Apps needing relative time displays
  • Developers familiar with MomentJS
  • Projects requiring consistent time formatting
  • UI-heavy applications with real-time updates
  • Teams prioritizing developer productivity
Considerations
  • Requires understanding of relative time concepts
  • May need localization setup for non-English locales
  • Limited to time formatting—no full date parsing
  • Depends on Dart's core DateTime class
  • Not suitable for complex date arithmetic
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add calendar_time

Categories

Dependencies

Dependency list 1 items

Source repository

Related projects

No data available yet.