Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeremyko/flutter-proximity-sensor-plugin

flutter proximity sensor plugin package
https://github.com/jeremyko/flutter-proximity-sensor-plugin

android dart flutter iphone-app kotlin proximity-sensor swift

Last synced: about 1 month ago
JSON representation

flutter proximity sensor plugin package

Awesome Lists containing this project

README

        

# proximity_sensor

https://pub.dev/packages/proximity_sensor

simple and easy to use flutter plugin package for proximity sensor (only)

## Getting started

In the `pubspec.yaml` of your flutter project, add the following dependency:

```yaml
dependencies:
...
proximity_sensor:
```

In your library add the following import:

```dart
import 'package:proximity_sensor/proximity_sensor.dart';
```

## Note

Android 12 and higher are required to specify an explicit value for `android:exported`
This is an example.

**Some recent devices use virtual proximity sensors. There are no physical sensors. I found it hard to trust the sensor information in this case.**