flutter_compass
一个 Flutter 指南针。航向范围为 0-360,0 表示正北。
hemanthrajv/flutter_compass open-source repository details.
以下为英文项目原文快照,最新内容请访问 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
依赖清单 1 项
{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗