google_map_fluttify 0.2.0-rc.0 google_map_fluttify: ^0.2.0-rc.0 copied to clipboard
An `Google Map` Map Component, Powered By `Fluttify` Compiler, A Dart Bindings Generator For Native SDK.
import 'package:flutter/material.dart';
import 'package:google_map_fluttify/google_map_fluttify.dart';
import 'package:oktoast/oktoast.dart';
import 'map/map.screen.dart';
Future<void> main() async {
runApp(MyApp());
// await enableFluttifyLog(false);
await GoogleMapService.instance.init(
iosKey: '***********************',
);
}
class MyApp extends StatefulWidget {
const MyApp();
@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(),
),
),
);
}
}