lat_compass 1.1.0 copy "lat_compass: ^1.1.0" to clipboard
lat_compass: ^1.1.0 copied to clipboard

A compass plugin written in native code that provides true north, magnetic north, and accuracy.

lat_compass #

pub package

A compass that provides true north and magnetic north

It is based on data provided by the Android and iOS platforms

See the example app for more details

Getting started #

dependencies:
  lat_compass: ^1.1.0

Android #

For Android, you need to have location information to calculate true north

Use an external plugin like Permission_handler to request location permission

The plugin will get the location permission on its own and stream the true north when it receives the location information

(Note that until location information is received, true north and magnetic north are the same)

Usage #

LatCompass().onUpdate.listen((event) {
  event.magneticHeading;
  event.trueHeading;
  event.accuracy;
})
4
likes
150
pub points
69%
popularity
screenshot

Publisher

unverified uploader

A compass plugin written in native code that provides true north, magnetic north, and accuracy.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on lat_compass