hemanthrajv / flutter_compass

MIT License
102 stars 187 forks source link

Sensor support check(Android) #29

Closed medyas closed 4 years ago

medyas commented 4 years ago

because the sensor object in Android will be null if the device does not have the specified sensor, i added a check if the sensor is null, we emit null to the Stream so it can be checked in Flutter side and we can display a message like Device not supported . I also updated the README files.

medyas commented 4 years ago

Also, was wondering if i can submit a pull request with support for Qiblah direction as it was requested by someone, if not i will develop separate package that will depend on this one. Thanks

hemanthrajv commented 4 years ago

Sorry for the delay in responding. Yeah, sure you can add Qiblah direction and place a PR, I'd be more than happy to accept it.

medyas commented 4 years ago

Sorry for the delay in responding. Yeah, sure you can add Qiblah direction and place a PR, I'd be more than happy to accept it.

No problem. For Qiblah, i already developed a separate plugin flutter_qiblah which depends on both flutter_compass and Geolocator