bmap_map_fluttify 0.1.4+3
bmap_map_fluttify: ^0.1.4+3 copied to clipboard

An `BaiduMap` Map Component, Powered By `Fluttify` Engine, Which Generates Dart Binding For Native SDK.

example/lib/main.dart

import 'package:bmap_map_fluttify/bmap_map_fluttify.dart';
import 'package:flutter/material.dart';
import 'package:foundation_fluttify/foundation_fluttify.dart';
import 'package:oktoast/oktoast.dart';

import 'map/map.screen.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await enableFluttifyLog(false);
  await BmapService.instance.init(iosKey: 'KryNE2jVLpf3tCYxpxnnc5wEjGyztvEf');
  runApp(MyApp());
}

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('BMaps examples')),
          backgroundColor: Colors.grey.shade200,
          body: MapDemo(),
        ),
      ),
    );
  }
}
1
likes
65
pub points
48%
popularity

Publisher

fluttify.com

An `BaiduMap` Map Component, Powered By `Fluttify` Engine, Which Generates Dart Binding For Native SDK.

Homepage

Documentation

API reference

License

GPL 3.0 (LICENSE)

Dependencies

bmap_core_fluttify, bmap_utils_fluttify, core_location_fluttify, flutter, foundation_fluttify, path_provider

More

Packages that depend on bmap_map_fluttify