Code Monkey home page Code Monkey logo

Comments (7)

k0T0z avatar k0T0z commented on June 10, 2024

@iamriajul @KarimMohamed20 ?

from adhan-dart.

JMApps avatar JMApps commented on June 10, 2024

Снимок экрана 2023-01-31 в 07 50 28

@saifkandil Works fine for me when selecting Mecca with prayer time calculation Umm al-Qura. You may not be initializing everything in the correct sequence

from adhan-dart.

k0T0z avatar k0T0z commented on June 10, 2024

@JMApps the problem is not with selecting "umm alqura uni, mekka" alone try to select it with other parameters I specified above, please

from adhan-dart.

JMApps avatar JMApps commented on June 10, 2024

@saifkandil Works fine for me and doesn't throw any exception, Hanafi method for asr prayer is selected in the screenshot and Umm al-Qura for prayer times. But I didn't understand "based on angle".

from adhan-dart.

k0T0z avatar k0T0z commented on June 10, 2024

@JMApps Sorry I didn't clarify it at first it's twilight angle for high latitude rule (I use it as Based on angle so that user can understand it)

/// Rules for dealing with Fajr and Isha at places with high latitudes
enum HighLatitudeRule {
  /// Fajr will never be earlier than the middle of the night, and Isha will never be later than
  /// the middle of the night.
  middle_of_the_night,

  /// Fajr will never be earlier than the beginning of the last seventh of the night, and Isha will
  /// never be later than the end of hte first seventh of the night.
  seventh_of_the_night,

  /// Similar to [HighLatitudeRule.seventh_of_the_night], but instead of 1/7th, the faction
  /// of the night used is fajrAngle / 60 and ishaAngle/60.
  twilight_angle
}

In short, steps to reproduce is: set your High latitude rule -> twilight_angle
Calculation method -> Umm Al-qura University, Makkah
Madhab -> Hanafi

from adhan-dart.

k0T0z avatar k0T0z commented on June 10, 2024

did you managed to reproduce it? @JMApps

from adhan-dart.

JMApps avatar JMApps commented on June 10, 2024

Yes bro @k0T0z , I apologize for the late response. I reproduced it, you need to initialize: twilight_angle at the very end:

_prayerTimes = PrayerTimes.today(
  _coordinates,
  _prayerParams,
  utcOffset: AppStyles.calculationUtcOffset[timeOffsetIndex],
);

_sunnahTimes = SunnahTimes(_prayerTimes);
_qibla = Qibla(_coordinates);
_prayerParams.highLatitudeRule = HighLatitudeRule.twilight_angle;

from adhan-dart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.