Search packages, repositories and app categories

Package detailsv0.22.0

amap_location_fluttify

An `Amap` Location Component, Powered By `Fluttify`, A Compiler Generating Dart Bindings For Native SDK.

AndroidiOS
30-day downloads
348
Likes
17
Pub points
105

Install package

flutter pub add amap_location_fluttify

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that provides location services using Amap's native SDK, powered by Fluttify—a tool that generates Dart bindings for native libraries. It enables access to high-accuracy geolocation features on Android and iOS through a seamless Dart interface. Ideal for apps requiring robust map-based location tracking, such as navigation, delivery services, or location-aware utilities. The package leverages native performance while maintaining cross-platform compatibility.

Use cases

  • Real-time location tracking
  • Map-based applications
  • Delivery and logistics apps
  • Location-aware services
  • Geofencing implementations

Key features

  • Native Amap SDK integration
  • Cross-platform support (Android & iOS)
  • Automatic Dart binding via Fluttify
  • High-precision location data
  • Easy setup with Flutter pub

Suitable for

  • Developers using Amap maps
  • Apps needing accurate geolocation
  • Projects requiring native SDK access
  • Flutter teams wanting minimal boilerplate
  • Mobile apps in China with Amap dependency

Considerations

  • Requires Amap SDK setup and API keys
  • Limited to Android and iOS platforms
  • Dependent on Fluttify's stability
  • May need additional permissions in manifest/info.plist
  • Potential size increase due to native SDK inclusion

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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.

Categories

Dependencies

Dependency list 3 items

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

Source repository

Projects using this package

No data available yet.