amap_map_fluttify 0.2.4+9922976 copy "amap_map_fluttify: ^0.2.4+9922976" to clipboard
amap_map_fluttify: ^0.2.4+9922976 copied to clipboard

outdated

An `Amap` map component, based on `fluttify` engine.

高德 地图组件 #

pub package Codemagic build status

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

安装:

dependencies:
  flutter:
    sdk: flutter
  amap_map_fluttify: ^x.x.x

导入:

import 'package:amap_map_fluttify/amap_map_fluttify.dart';

使用:

class AmapWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return AmapView(
      onMapCreated: (controller) async {
        if (await requestPermission()) {
          await controller.showMyLocation(true);
        }
      },
    );
  }
}

请作者喝杯奶茶 #

LICENSE #

Copyright 2019 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.