hemanthrajv / flutter_compass

MIT License
101 stars 167 forks source link

How to check if desired sensor in available on the target device or not #17

Open Mohammadhamza43 opened 5 years ago

medyas commented 4 years ago

@Mohammadhamza43 Flutter Qiblah has a method which allows you to check whether the device has a sensor:

import 'package:flutter_qiblah/flutter_qiblah.dart';
final _deviceSupport = await FlutterQiblah.androidDeviceSensorSupport();