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

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add flutter_magnetometer

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  flutter_magnetometer: ^0.1.1

Alternatively, 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:flutter_magnetometer/flutter_magnetometer.dart';
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