v0.8.1
flutter_compass
一個 Flutter 指南針。航向範圍為 0-360,0 表示正北。
191喜歡 8.3萬近 30 天下載150Pub 分數
AndroidiOS
hemanthrajv/flutter_compass open-source repository details.
{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
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.
To use this plugin, add flutter_compass as a dependency in your pubspec.yaml file. For example:
dependencies:
flutter_compass: '^0.8.1'
Make sure to add keys with appropriate descriptions to the Info.plist file.
NSLocationWhenInUseUsageDescriptionNSLocationAlwaysAndWhenInUseUsageDescription:memo: Reference example code
Make sure to add permissions to the app/src/main/AndroidManifest.xml file.
android.permission.INTERNETandroid.permission.ACCESS_COARSE_LOCATIONandroid.permission.ACCESS_FINE_LOCATION:memo: Reference example code
:memo: Reference example code