adhan_dart
2.0.1, released 6 months ago by farend.net
Calculate Islamic prayer times using precise astronomical formulas.
WASM-ready
What it does
Computes Muslim prayer times based on precise astronomical formulas derived from Jean Meeus's book 'Astronomical Algorithms'. It supports various global calculation methods, custom angles, madhabs, and high-latitude adjustments.
AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to calculate Islamic prayer times (Fajr, Dhuhr, Asr, Maghrib, Isha) in a Dart or Flutter application.
- You require specific calculation methods like Muslim World League, Umm al-Qura, Karachi, or ISNA.
Skip it when
- You are looking for a full database or API service rather than a pure calculation library.
Strengths
- Port of a well-tested JavaScript adhan library with high astronomical precision.
- No external dependencies required for core functionality.
- Extensive support for international calculation methods and customization parameters.
Weaknesses
- Requires manual handling of timezones and date time offsets for precise local prayer times.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Coordinates coordinates = const Coordinates(35.78056, -78.6389);
DateTime date = DateTime.now();
CalculationParameters params = CalculationMethodParameters.muslimWorldLeague();
PrayerTimes prayerTimes = PrayerTimes(coordinates: coordinates, date: date, calculationParameters: params);Alternatives
Packages that do the same job and could replace adhan_dart.
- kosher_dart
Dart library for calculating Jewish calendar dates and halachic times.
87Compare - adhan
Library for calculating Islamic prayer times in Dart
50Compare - prayers_times
Calculates Islamic prayer times, Qibla, and Madina directions based on coordinates.
48Compare