Open wael93 opened 2 years ago
I have this code
final myCoordinates = Coordinates(21.416667938232425, 39.81666564941406); // Replace with final MaccaTime = Duration(hours: 3); final date = DateComponents.from(DateTime.now()); final params = CalculationMethod.umm_al_qura.getParameters(); params.madhab = Madhab.hanafi; params.adjustments.fajr = -1; final prayerTimes =PrayerTimes(myCoordinates, date, params, utcOffset: MaccaTime); var nextPrayerTimes = prayerTimes.nextPrayer(); print("nextPrayerTimes "+ nextPrayerTimes.toString() ); final nextPrayerTime = prayerTimes.timeForPrayer(nextPrayerTimes); final startTime = DateTime(nextPrayerTime.year, nextPrayerTime.month, nextPrayerTime.day, nextPrayerTime.hour, nextPrayerTime.minute); final currentTime = DateTime.now(); final diff_dy = startTime.difference(currentTime).inDays; final diff_hr = startTime.difference(currentTime).inHours; final diff_mn = startTime.difference(currentTime).inMinutes; final diff_sc = startTime.difference(currentTime).inSeconds; print(diff_dy); print(diff_hr); print(diff_mn); print(diff_sc/60);
it's Should Show next player is Isha but it shows Asr
I/flutter ( 3343): nextPrayerTimes Prayer.asr I/flutter ( 3343): 0 I/flutter ( 3343): -2 I/flutter ( 3343): -130 I/flutter ( 3343): -130.13333333333333
I have this code
it's Should Show next player is Isha but it shows Asr