all_device_sensors 1.0.1
all_device_sensors: ^1.0.1 copied to clipboard
A Flutter plugin to access all device sensors — accelerometer, gyroscope, magnetometer, linear acceleration, gravity, barometer, proximity, light and step counter. By Bharathwaj.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add all_device_sensorsThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
all_device_sensors: ^1.0.1Alternatively, 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:all_device_sensors/all_device_sensors.dart';