Buscar pacotes, repositórios e categorias de apps

Repositório GitHubfluttify-project/amap_location_fluttify

amap_location_fluttify

Plug-in Flutter para componente de localização do Mapa Gaode

Capa do projeto amap_location_fluttify
Estrelas
105
Forks
42
Último push (UTC)
15 de out. de 2020
Status do projeto
Arquivado

README original

Texto original em inglês. Visite o GitHub para a versão atual.

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.

Fluttify GitHub avatar
Autor no GitHub

Fluttify ↗

A compiler generating Dart bindings for native SDK.

LinguagensJavaDartObjective-CRubyHTML

Categorias

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 6 itens

  • flutter{"sdk":"flutter"}
  • amap_core_fluttify^0.14.0-dev.2
  • foundation_fluttify^0.11.0-dev.8
  • core_location_fluttify^0.6.0-dev.1
  • flutter_testDesenvolvimento{"sdk":"flutter"}
  • pedanticDesenvolvimento^1.0.0

Como escolher um repositório para seu projeto?

Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.

  1. Busque por nome, autor ou descrição e filtre por tema.
  2. Compare estrelas, forks e envios recentes. Estrelas indicam interesse, mas não garantem qualidade.
  3. Confira o README, a licença e as issues no GitHub antes de usar o projeto.

Fontes e manutenção

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗