Skip to content

Latitute bigger than 75 throws an exception #61

@MuhammadSwa

Description

@MuhammadSwa

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

  • when running this function you get the error.
PrayerTimes? getPrayersTimes() {
  const double latitude = 76;
  const double longitude = 179;

  final myCoordinates = Coordinates(latitude, longitude,validate: true);
  final params = CalculationMethod.egyptian.getParameters();
  params.madhab = Madhab.shafi;
  final PrayerTimes prayerTimes = PrayerTimes.today(myCoordinates, params);

  return prayerTimes;
}

Expected behavior
Latitude maxium value should be 90 not 75

Environment(please complete the following information):

  • Dart Language Version: [e.g. Dart 3.3.4]
  • Adhan-Dart Version: [2.0.0+1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions