flutter_nhan_compass 1.0.0 copy "flutter_nhan_compass: ^1.0.0" to clipboard
flutter_nhan_compass: ^1.0.0 copied to clipboard

A Flutter compass. The heading varies from 0-360, 0 being north.

flutter_nhan_compass #

pub package Hi my name is NhanTran. A Flutter compass. The heading varies from 0-360, 0 being north.

Note: Android Only: null is returned as direction on android when no sensor available.

Usage #

To use this plugin, add flutter_nhan_compass as a dependency in your pubspec.yaml file. For example:

dependencies:
  flutter_nhan_compass: ^0.0.2

iOS #

Make sure to add keys with appropriate descriptions to the Info.plist file.

  • NSLocationWhenInUseUsageDescription
  • NSLocationAlwaysAndWhenInUseUsageDescription

📝 Reference example code

Android #

Make sure to add permissions to the app/src/main/AndroidManifest.xml file.

  • android.permission.INTERNET
  • android.permission.ACCESS_COARSE_LOCATION
  • android.permission.ACCESS_FINE_LOCATION

📝 Reference example code

📝 Reference example code

1
likes
160
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter compass. The heading varies from 0-360, 0 being north.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_nhan_compass