flutter_magnetometer 0.1.1 copy "flutter_magnetometer: ^0.1.1" to clipboard
flutter_magnetometer: ^0.1.1 copied to clipboard

A Flutter plugin for getting the magnetometer data of your device along the x,y and z coordinates

flutter_magnetometer #

Supports Android only atm #

To start using this add import 'package:flutter_magnetometer/flutter_magnetometer.dart';to your imports section.

Then you can simply listen to new events from the sensor via FlutterMagnetometer.events.listen((MagnetometerData data) => doStuff(data));.

An example app with a compass and raw sensor data in the UI can be found in ther example folder.

Getting Started #

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

2
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A Flutter plugin for getting the magnetometer data of your device along the x,y and z coordinates

Homepage

License

BSD-3-Clause (LICENSE)

Dependencies

equatable, flutter

More

Packages that depend on flutter_magnetometer