flutter_barometer 0.1.0
flutter_barometer: ^0.1.0 copied to clipboard

A new flutter plugin project.

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)]

Also see the example subdirectory for an example application that uses the sensor data.