prayer_time 1.0.0 prayer_time: ^1.0.0 copied to clipboard
A Dart Pacakge to get prayer times of different loctions based on geo and timezone.
A library for Dart developers.
A Dart Package to find prayers/ramazan timings for your exact location.
Features #
- Standalone
- Astronomical calculations
- can find for your exact location
LICENSE #
GPL-3
Usage #
A simple usage example:
import 'package:prayer_time/prayer_time.dart';
void main() {
/*
// method
0; // Jafari
1; // University of Islamic Sciences, Karachi
2; // Islamic Society of North America (ISNA)
3; // Muslim World League (MWL)
4; // Umm al-Qura, Makkah
5; // Egyptian General Authority of Survey
6; // Custom Setting
7; // Institute of Geophysics, University of Tehran
*/
PrayTime prayerTime = PrayTime(method: 1);
// date {year, mday, mon}, latitude, longitude, timezone
var times = prayerTime.getPrayerTimes({
"year": 2021,
"mday": 19,
"mon": 4,
}, 31.170406299999996, 72.7097161, 5);
// [Fajr, Sunrise, Dhuhr, Asr, Sunset, Maghrib, Isha]
print(times);
}