amap_map_fluttify 2.0.2 copy "amap_map_fluttify: ^2.0.2" to clipboard
amap_map_fluttify: ^2.0.2 copied to clipboard

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

example/lib/main.dart

import 'package:amap_map_fluttify/amap_map_fluttify.dart';
import 'package:flutter/material.dart';
import 'package:oktoast/oktoast.dart';

import 'map/map.screen.dart';

Future<void> main() async {
  runApp(MyApp());

  await enableFluttifyLog(false);
  await AmapSearch.instance.updatePrivacyAgree(true);
  await AmapSearch.instance.updatePrivacyShow(true);
  await AmapService.instance.init(
    iosKey: '7a04506d15fdb7585707f7091d715ef4',
    androidKey: '7c9daac55e90a439f7b4304b465297fa',
    webKey: 'e69c6fddf6ccf8de917f5990deaa9aa2',
  );
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return OKToast(
      child: MaterialApp(
        home: Scaffold(
          appBar: AppBar(title: const Text('AMaps examples')),
          backgroundColor: Colors.grey.shade200,
          body: MapDemo(),
        ),
      ),
    );
  }
}
30
likes
85
pub points
83%
popularity

Publisher

verified publisherfluttify.com

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

Documentation

API reference

License

unknown (LICENSE)

Dependencies

amap_core_fluttify, amap_location_fluttify, amap_search_fluttify, core_location_fluttify, flutter, foundation_fluttify, uni_map_platform_interface, url_launcher

More

Packages that depend on amap_map_fluttify