FLUTTER ECOSYSTEM

hemanthrajv/flutter_compass

hemanthrajv/flutter_compass open-source repository details.

flutter_compass 프로젝트 이미지
Stars
108
Forks
196
최근 푸시(UTC)
2024. 11. 17.
프로젝트 상태
활성
Hemanth Raj V GitHub avatar
GITHUB User

Hemanth Raj V ↗

An innovation enthusiast and electronics hobbyist.

언어JavaDartSwiftRubyObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 1 개
  • flutter{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

flutter_compass

pub package

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_compass as a dependency in your pubspec.yaml file. For example:

dependencies:
  flutter_compass: '^0.8.1'
iOS

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

  • NSLocationWhenInUseUsageDescription
  • NSLocationAlwaysAndWhenInUseUsageDescription

:memo: 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

:memo: Reference example code

Recommended support plugins

:memo: Reference example code