prayer_time_plus 0.3.0
prayer_time_plus: ^0.3.0 copied to clipboard
Offline Islamic prayer times (Fajr to Isha) and Sunnah times with 50+ regional calculation methods, auto method resolution, and zero dependencies.
Changelog #
Unreleased #
0.3.0 #
- Added working angle-based Maghrib support: in non-interval mode, a positive
maghribValueis an evening solar-depression angle, with a safe Sunset fallback when the event is unavailable or non-chronological. - Interval Isha is now explicitly based on the final Maghrib time, including an angle-based Maghrib.
- Documented the shared
custompreset contract (Fajr 18°, Maghrib at Sunset, Isha 17°) used by the Dart, Kotlin, and Swift packages. - Fixed automatic national method resolution so Iraq (
IQ) selectsiraqinstead ofegypt, and Austria (AT) selectsaustriainstead oftunisia. - Removed the unused continent fallback from the generated resolution model; country misses now fall back directly to Muslim World League as documented.
0.2.0 #
- Added
HighLatitudeRule.automaticas the explicit default high-latitude behavior. - Changed
CalculationParameters.highLatitudeRuleto default toHighLatitudeRule.automaticinstead of relying onnull. - Kept
HighLatitudeRule.noneas the explicit unadjusted mode where Fajr and Isha may remainnull. - Documented the updated high-latitude rule options.
0.1.0 #
Initial release.
- Prayer-time engine: Julian day, sun position, single-pass solar-angle computation, adjust pipeline, four high-latitude rules, and nearest-minute rounding.
PrayerTimeswithtoday(), per-prayerDateTimes, andcurrentPrayer/nextPrayer/timeForPrayer.- 50+
CalculationMethodpresets with a customisableCalculationParameters(Fajr/Isha angles or intervals, Maghrib interval, per-prayer offsets, madhab, high-latitude rule). Madhab(Shafi/Hanafi) Asr and per-prayer minute tuning.AutoMethod.forCountryfor ISO country-based method resolution.SunnahTimesnight portions.- Umm al-Qura Ramadan Isha rule.
- Command-line demo (
dart run prayer_time_plus) and a runnable example. - Pure Dart, zero runtime dependencies.