Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jeremyko/flutter-proximity-sensor-plugin
- Owner: jeremyko
- License: mit
- Created: 2021-03-24T14:35:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-13T14:07:39.000Z (about 2 months ago)
- Last Synced: 2024-09-28T12:20:14.319Z (about 1 month ago)
- Topics: android, dart, flutter, iphone-app, kotlin, proximity-sensor, swift
- Language: Kotlin
- Homepage: https://jeremyko.github.io/2021/03/28/proximitysensor-flutter-package-plugin.html
- Size: 110 KB
- Stars: 7
- Watchers: 2
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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.**