medyas / flutter_qiblah

Flutter Qiblah is a plugin that allows you to display Qiblah direction in you app with support for both Android and iOS.
https://pub.dev/packages/flutter_qiblah
MIT License
134 stars 97 forks source link

How can I know if its facing the qibla. #52

Closed heymars closed 2 months ago

heymars commented 2 months ago

Hi ,

I want to understand how I can accomplish this — I aim to turn the screen background green if it's facing the qibla direction.

medyas commented 2 months ago

you can do this by checking if qiblahDirection.qiblah == qiblahDirection.offset

heymars commented 2 months ago

Hi @medyas Thanks for the reply but this is not working whileqiblahDirection.qiblah giving value 719.68 and qiblahDirection.offset giving value -79.002 , qiblahDirection.qiblah never gives the values same as qiblahDirection.offset