Pakete, Repositories und App-Kategorien suchen

Paketdetailsv0.22.0

amap_location_fluttify

Ein `Amap`-Standortkomponente, angetrieben von `Fluttify`, einem Compiler, der Dart-Bindings für native SDKs generiert.

AndroidiOS
30-Tage-Downloads
348
Likes
17
Pub-Punkte
105

Paket installieren

flutter pub add amap_location_fluttify

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Ein Flutter-Paket, das Standortdienste mithilfe des nativen SDKs von Amap bereitstellt und von Fluttify – einem Tool, das Dart-Bindings für native Bibliotheken generiert – angetrieben wird. Es ermöglicht den Zugriff auf hochpräzise Geolokalisierungsfunktionen unter Android und iOS über eine nahtlose Dart-Schnittstelle. Ideal für Apps, die leistungsstarke ortsbasierte Standortverfolgung erfordern, wie Navigation, Lieferdienste oder ortsbasierte Dienstprogramme. Das Paket nutzt native Leistung, während es gleichzeitig plattformübergreifende Kompatibilität gewährleistet.

Anwendungsfälle

  • Echtzeit-Standortverfolgung
  • Kartenbasierte Anwendungen
  • Liefer- und Logistik-Apps
  • Standortbewusste Dienste
  • Geofencing-Implementierungen

Hauptmerkmale

  • Native Amap SDK-Integration
  • Plattformübergreifende Unterstützung (Android & iOS)
  • Automatische Dart-Bindung über Fluttify
  • Hochpräzise Standortdaten
  • Einfache Einrichtung mit Flutter pub

Geeignet für

  • Entwickler, die Amap-Karten verwenden
  • Apps, die genaue Geolocation benötigen
  • Projekte, die native SDK-Zugriffe erfordern
  • Flutter-Teams, die minimalen Boilerplate wünschen
  • Mobile Apps in China mit Amap-Abhängigkeit

Hinweise

  • Erfordert Amap SDK-Einrichtung und API-Schlüssel
  • Beschränkt auf die Plattformen Android und iOS
  • Abhängig von der Stabilität von Fluttify
  • Möglicherweise sind zusätzliche Berechtigungen in Manifest/info.plist erforderlich
  • Potenzieller Größenanstieg aufgrund der Einbeziehung des nativen SDK

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

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.

Kategorien

Abhängigkeiten

Abhängigkeiten 3 Einträge

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

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.