분류, 패키지 및 저장소 검색

패키지 상세v0.22.0

amap_location_fluttify

`Fluttify`로 구동되는 `Amap` 위치 컴포넌트. 네이티브 SDK용 Dart 바인딩을 생성하는 컴파일러입니다.

AndroidiOS
30일 다운로드
164
좋아요
17
Pub 점수
105

패키지 설치

flutter pub add amap_location_fluttify

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Amap의 네이티브 SDK를 사용하여 위치 서비스를 제공하는 플러터 패키지로, Fluttify라는 도구에 의해 구동됩니다. 이 도구는 네이티브 라이브러리용 Dart 바인딩을 생성합니다. 원활한 Dart 인터페이스를 통해 안드로이드 및 iOS에서 고정밀 지리정보 기능에 접근할 수 있습니다. 내비게이션, 배달 서비스 또는 위치 기반 유틸리티와 같은 강력한 맵 기반 위치 추적 기능이 필요한 앱에 적합합니다. 패키지는 네이티브 성능을 활용하면서도 크로스플랫폼 호환성을 유지합니다.

사용 사례

  • 실시간 위치 추적
  • 지도 기반 애플리케이션
  • 배송 및 물류 앱
  • 위치 인식 서비스
  • 지오펜싱 구현

주요 기능

  • 네이티브 아맵 SDK 통합
  • 크로스 플랫폼 지원 (Android 및 iOS)
  • Fluttify를 통한 자동 Dart 바인딩
  • 고정밀 위치 데이터
  • Flutter pub로 간편한 설정

적합한 대상

  • Amap 지도를 사용하는 개발자
  • 정확한 위치 정보가 필요한 앱
  • 네이티브 SDK 접근이 필요한 프로젝트
  • 최소한의 보일러플레이트를 원하는 플러터 팀
  • 중국의 Amap 종속 모바일 앱

고려 사항

  • Amap SDK 설정 및 API 키가 필요합니다
  • Android 및 iOS 플랫폼에 한정
  • Fluttify의 안정성에 따라 달라짐
  • 매니페스트/info.plist에 추가 권한이 필요할 수 있습니다
  • 네이티브 SDK 포함으로 인한 크기 증가 가능성

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Logo

高德 定位组件

pub package

Dart接口基于fluttify引擎生成. dartdoc接口文档.

DEMO 与 社区

Demo QQ群
扫描二维码
或者
点击下载
加入QQ群讨论

安装:

dependencies:
  flutter:
    sdk: flutter
  amap_location_fluttify: ^x.x.x

导入:

import 'package:amap_location_fluttify/amap_location_fluttify.dart';

使用:

/// !注意: 只要是返回Future的方法, 一律使用`await`修饰, 确保当前方法执行完成后再执行下一行, 在不能使用`await`修饰的环境下, 在`then`方法中执行下一步.
/// 初始化 iOS在init方法中设置, android需要去AndroidManifest.xml里去设置, 详见 https://lbs.amap.com/api/android-sdk/gettingstarted
await AmapCore.init('ios key');

// 单次定位
if (await requestPermission()) {
  final location = await AmapLocation.fetchLocation();
  setState(() => _location = location);
}

// 连续定位
if (await requestPermission()) {
  AmapLocation.listenLocation()
    .listen((location) => setState(() => _location = location));
}

LICENSE

Copyright 2020 yohom

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

카테고리

의존성

의존성 목록 3 개

  • amap_core_fluttify^0.17.0
  • core_location_fluttify^0.7.1
  • foundation_fluttify^0.13.0+1

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.