Hey Flutter community! ![]()
I’m excited to share general_datetime 5.0.1, an open-source package I’ve been working on to make multi-calendar date handling easier in Flutter and Dart.
What does it support?
-
Gregorian dates -
Persian (Jalali) calendar -
Hebrew calendar -
Chinese calendar -
Hijri (Umm al-Qura) calendar -
Date conversions, parsing, and arithmetic -
Flutter Material date-picker integration
Quick example:
final now = DateTime.now();
final persian = PersianDateTime.fromDateTime(now);
final hijri = HijriDateTime.fromDateTime(now);
final hebrew = HebrewDateTime.fromDateTime(now);
The goal is to make calendar-aware applications easier to develop, especially for multilingual and international users.
pub.dev: https://pub.dev/packages/general_datetime
GitHub: https://github.com/ali-you/general-datetime-package
I’d really appreciate feedback from the community!
-
What calendar features are missing?
-
What challenges have you faced with non-Gregorian dates in Flutter?
-
What would make this package more useful in your projects?
If you find it useful, a like on pub.dev would mean a lot and help other developers discover it. ![]()
Thanks for checking it out!