Last updated:
0 purchases
flutter barometer
flutter_barometer #
A flutter plugin to access the barometer sensor.
Usage #
To use this plugin, add flutter_barometer as a dependency in your pubspec.yaml
file.
This will expose the class of sensor events.
FlutterBarometerEvents describe the pressure of the device.
Example #
import 'package:flutter_barometer/flutter_barometer.dart';
flutterBarometerEvents.listen((FlutterBarometerEvent event) {
print(event);
})
// [FlutterBarometerEvent (pressure: 1000.0)]
copied to clipboard
Also see the example subdirectory for an example application that uses the
sensor data.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.