hijri_date
1.2.1, released 3 weeks ago by alheekmahlib.com
Comprehensive Islamic Hijri calendar library with date conversion, moon phases, and events.
What it does
Provides accurate Hijri to Gregorian conversion using the Umm al-Qura calendar, along with date math, multi-language support, moon phase calculations and widgets, and Islamic events management.
AI-written summary of version 1.2.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need Hijri and Gregorian date conversion in your Flutter application.
- Your app requires Islamic events tracking and localized numerals.
- You want to display moon phases or use a horizontal week calendar with Hijri dates.
Skip it when
- You only need standard Gregorian calendar date manipulation.
- You require custom or non-Umm al-Qura calendar calculation formulas not covered by the library.
Strengths
- Accurate Umm al-Qura calendar conversions and robust date validation.
- Built-in astronomical moon phase calculations and visual widget.
- Extensive multi-language support (8 languages) with localized numerals.
- Includes major Islamic events with hadiths and statistics.
Weaknesses
- Moon phase calculations are approximate.
- Tied specifically to the Islamic calendar and Umm al-Qura rules.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
not documented
import 'package:hijri_date/hijri.dart';
void main() {
final today = HijriDate.now();
print(today.fullDate());
}Alternatives
Packages that do the same job and could replace hijri_date.
- l10n_languages
Provides CLDR-like translations for language names across 157 locales.
80Compare - language_code
Get current device language code and locale with full ISO 639-1 and ISO 639-2 dictionaries.
67Compare - flutter_locales
Easily localize Flutter apps using JSON files with dynamic locale switching and persistent storage.
51Compare - locale_names
Provide locale display names in various locales via extensions on Locale from dart:ui.
46Compare
Works with
Packages commonly used together with hijri_date: ones it builds on, ones built on it, and its own family.