jhijri
1.0.0, released 3 years ago by jucodes.com
A Hijri and Gregorian date converter package for Flutter and Dart.
What it does
It converts dates between the Gregorian calendar and the Hijri calendar. It allows conversion using specific day, month, and year inputs or standard DateTime instances.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display or convert Hijri dates in your Flutter application.
- You want to convert Gregorian DateTime objects to Hijri dates easily.
Skip it when
- You need complex calendar pickers, which are moved to a separate package.
- You require extensive timezone handling not related to calendar conversion.
Strengths
- Simple API for converting dates between Gregorian and Hijri.
- Supports multiple input methods including DateTime, current time, and direct inputs.
Weaknesses
- UI picker features have been moved to a separate package (jhijri_picker).
- Limited documentation beyond basic conversions.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
final jHijri = JHijri.now();Alternatives
Packages that do the same job and could replace jhijri.
- hijri
Convert between Hijri (Umm al‑Qura) and Gregorian dates with locale support.
66Compare - smart_date_formatter
Flutter utility for formatting, parsing and manipulating DateTime with human‑readable strings and ready‑made widgets.
65Compare - general_datetime
Chronology library for Gregorian, Persian, Hebrew, Chinese and Umm al‑Qura calendars with Flutter date‑picker adapters.
64Compare - quantify
Type-safe unit conversion and measurement library for Dart and Flutter.
61Compare
Works with
Packages commonly used together with jhijri: ones it builds on, ones built on it, and its own family.