24 lines
596 B
Dart
24 lines
596 B
Dart
import 'package:easy_google_maps_example/api_key.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:easy_google_maps/easy_google_maps.dart';
|
|
|
|
void main() => runApp(MyApp());
|
|
|
|
class MyApp extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
home: Scaffold(
|
|
appBar: AppBar(
|
|
title: const Text('Easy Google Maps'),
|
|
),
|
|
body: EasyGoogleMaps(
|
|
apiKey: kGoogleMapsApiKey,
|
|
address: 'Infinite Loop, Cupertino, CA 95014',
|
|
title: 'Apple Campus',
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|