☀️Good Morning
HomeProjectsBlogThe WallContact
Abdulwahed Aldaghir

{ Work, for Allah will observe your deeds, and so will His Messenger and the believers. }

Links

HomeProjectsBlogThe Wall

Legal

Privacy PolicyTerms of Use

Social

© 2026 Abdulwahed Aldaghir. All rights reserved.

Back to Projects
Open-source package family

Prayer Time Plus

One offline prayer and Sunnah time engine, available as native packages for Dart & Flutter, Kotlin/JVM, and Swift, with 50+ regional calculation methods and zero runtime dependencies.

Three ecosystems · three packages · one shared engine

Fully offline
50+ calculation methods
Zero runtime dependencies
One calculation engineA shared astronomical model with three independent native ports
pub.devGitHub
Maven CentralGitHub
Swift Package IndexGitHub

Developer workbench

Install it and start building

Choose an ecosystem to update installation, usage, and metadata. All six package and repository links remain visible above.

Choose packageDart & Flutter
Dart & Flutterprayer_time_plus
v0.2.0RegistrySourceDocs

Installation

Flutter CLI
flutter pub add prayer_time_plus
pubspec.yaml
dependencies:
  prayer_time_plus: ^0.2.0
Import
import 'package:prayer_time_plus/prayer_time_plus.dart';

Quick start

Calculate a full day of prayer times

Provide coordinates, a date, a calculation method, and a UTC offset to receive deterministic local prayer times independent of the host device's timezone.

Calculate a full day of prayer times
import 'package:prayer_time_plus/prayer_time_plus.dart';

final coordinates = Coordinates(24.3486, 56.6953, altitude: 5);
final params = CalculationMethod.oman.getParameters();

final times = PrayerTimes(
  coordinates,
  DateComponents(2026, 6, 28),
  params,
  utcOffset: const Duration(hours: 4),
);

print(times.fajr);
print(times.maghrib);
print(times.nextPrayer());

Release details

Version
v0.2.0
Released
July 9, 2026
Registry
pub.dev
SDK requirements
Dart ^3.7.0
License
MIT
Null safeZero dependenciesWASM readyMIT

Supported platforms

Android
iOS
Windows
Linux
macOS
Web

Selected package links

pub.devGitHubDocumentationIssue tracker

Shared engine

What all three packages share

Prayer Time Plus is an open-source engine that calculates Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha, and Sunset directly from solar geometry. It works entirely offline without lookup tables, includes more than 50 methods used by authorities worldwide, and can automatically resolve the appropriate method from a country code.

Built for dependable prayer experiences

Fully offline calculation from the Sun's position for any date and location
50+ regional calculation methods with angle and per-prayer minute adjustments
Automatic method selection for every ISO-3166 country code
Shafi and Hanafi Asr plus four high-latitude rules
Middle-of-the-night and last-third Sunnah time calculations
Helpers for the current prayer, next prayer, and any prayer's time
Three faithful native ports for Dart & Flutter, Kotlin/JVM, and Swift, all with zero runtime dependencies

Built with

Dart
Flutter
Kotlin
Swift