proximity_manager 1.0.4
proximity_manager: ^1.0.4 copied to clipboard
A Flutter plugin to manage the proximity sensor, which allows to detect when an object is near to the device. This feature is use when the user is in a call and the device is near to the ear, the scre [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add proximity_managerThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
proximity_manager: ^1.0.4Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:proximity_manager/proximity_manager.dart';