flutter_barometer 0.1.0 copy "flutter_barometer: ^0.1.0" to clipboard
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.

0
likes
130
pub points
64%
popularity

Publisher

unverified uploader

A new flutter plugin project.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_barometer