iamriajul / adhan-dart

Adhan for Dart / Muslim Prayer Times Library. Now retrieving Prayer time in Dart easier than ever.
https://pub.dev/packages/adhan
MIT License
86 stars 41 forks source link

[Question] #35

Closed Saliim17 closed 2 years ago

Saliim17 commented 2 years ago

Please follow the general troubleshooting steps first:

Question related to which version: 2.0.0-nullsafety.2

Description

Is there any method that returns the remaining time to the next prayer? Looking at the documentation, I only see that I can get the current date but nothing else.

iamriajul commented 2 years ago

Assalamualaikum, Brother you can just easily calculate remaining time yourself in Dart.

final remainingTimeDifference = DateTime.now().difference(prayerTimes.fajr)

Thanks.