prayer_time 2.0.0 prayer_time: ^2.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/ramadan timings for your exact location.
This is the rewrite version of PHP code provided by praytimes.org
Features #
- Standalone
- Astronomical calculations
- Can find for your exact location
- Several methods of calculation.
Methods
- Jafari.
- University of Islamic Sciences, Karachi.
- Islamic Society of North America (ISNA).
- Muslim World League (MWL).
- Umm al-Qura, Makkah.
- Egyptian General Authority of Survey.
- Custom.
- Institute of Geophysics, University of Tehran
LICENSE #
GPL-3
Specials thanks #
Special thanks and credit goes to http://praytimes.org/
Installations #
dependencies:
prayer_time: ^2.0.0
Now import package.
import 'package:prayer_time/prayer_time.dart';
Usage #
A simple usage example:
import 'package:prayer_time/prayer_time.dart';
void main() {
/*
// method
Jafari; // Jafari
Karachi; // University of Islamic Sciences, Karachi
ISNA; // Islamic Society of North America (ISNA)
MWL; // Muslim World League (MWL)
Makkah; // Umm al-Qura, Makkah
Egypt; // Egyptian General Authority of Survey
Custom; // Custom Setting
Tehran; // Institute of Geophysics, University of Tehran
*/
PrayTime prayerTime = PrayTime(method:Karachi);
// 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);
}
Contribution #
You're welcome to contribute to this project. You should follow contribution guideline Contribution guideline
License #
MIT
Support #
If you like this project; Donate coffee?
here is the bitcoin address.
37x6PA4qtPu2fQnYdW5U7jztYhbchASpBV
Thank, you so much.