adhan 1.0.1 copy "adhan: ^1.0.1" to clipboard
adhan: ^1.0.1 copied to clipboard

outdated

Adhan for Dart / Muslim Prayer Times Library.

Usage #

A simple usage example:

import 'package:adhan/adhan.dart';

main() {
    final kushtia = Coordinates(23.9088, 89.1220);
    final date = DateComponents(2020, 6, 12);
    final params = CalculationMethod.karachi.getParameters();
    params.madhab = Madhab.hanafi;
    final prayerTimes = PrayerTimes(Duration(hours: 6), kushtia, date, params);
  
    print(DateFormat.jm().format(prayerTimes.fajr));
    print(DateFormat.jm().format(prayerTimes.sunrise));
    print(DateFormat.jm().format(prayerTimes.dhuhr));
    print(DateFormat.jm().format(prayerTimes.asr));
    print(DateFormat.jm().format(prayerTimes.maghrib));
    print(DateFormat.jm().format(prayerTimes.isha));
}

TODO #

  1. add Qibla
  2. add SunnahTimes

Features and bugs #

Please file feature requests and bugs at the issue tracker.

194
likes
0
pub points
93%
popularity

Publisher

verified publisherriajul.dev

Adhan for Dart / Muslim Prayer Times Library.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

extended_math, intl, vector_math

More

Packages that depend on adhan