prayer_time 2.0.0 copy "prayer_time: ^2.0.0" to clipboard
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 #

  1. Standalone
  2. Astronomical calculations
  3. Can find for your exact location
  4. Several methods of calculation.

Methods

  1. Jafari.
  2. University of Islamic Sciences, Karachi.
  3. Islamic Society of North America (ISNA).
  4. Muslim World League (MWL).
  5. Umm al-Qura, Makkah.
  6. Egyptian General Authority of Survey.
  7. Custom.
  8. 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.
Balance

37x6PA4qtPu2fQnYdW5U7jztYhbchASpBV
Thank, you so much.

Issue #

https://github.com/lablnet/prayer_time/issues

25
likes
105
pub points
62%
popularity

Publisher

verified publisheralphasofthub.com

A Dart Pacakge to get prayer times of different loctions based on geo and timezone.

Homepage

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on prayer_time