Skip to content
pubscout

prayers_times

0.0.6, released 3 years ago by mohamedashraf.in

Calculates Islamic prayer times, Qibla, and Madina directions based on coordinates.

WASM-ready
$ flutter pub add prayers_times
Source repository

What it does

Seamlessly calculates accurate Islamic prayer times (Namaz times), sunnah times, and Qibla or Madina directions according to geographical coordinates and calculation parameters. It provides utilities to determine current and next prayer times.

AI-written summary of version 0.0.6, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to calculate Islamic prayer times based on different calculation methods and madhabs.
  • You need to determine Qibla or Madina direction from a specific geographical location.

Skip it when

  • You are building a general map or GPS routing application unrelated to prayer timing.

Strengths

  • Supports multiple calculation methods and madhabs.
  • Provides convenience utilities for current and next prayer timings as well as Qibla direction.

Weaknesses

  • Relies entirely on geographical coordinates passed to it without built-in automated location fetching in the snippet.
  • Limited documentation on advanced customization beyond provided examples.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
Coordinates coordinates = Coordinates(21.1959, 72.7933);
PrayerCalculationParameters params = PrayerCalculationMethod.karachi();
PrayerTimes prayerTimes = PrayerTimes(
  coordinates: coordinates,
  calculationParameters: params,
  precision: true,
  locationName: 'Asia/Kolkata',
);
print('Fajr Start Time:\t${prayerTimes.fajrStartTime!}');

Alternatives

Packages that do the same job and could replace prayers_times.

  • adhan_dart

    Calculate Islamic prayer times using precise astronomical formulas.

  • daylight

    Calculate sunrise and sunset times for a location without using any remote API.

Works with

Packages commonly used together with prayers_times: ones it builds on, ones built on it, and its own family.