32 lines
710 B
Markdown
32 lines
710 B
Markdown
# easy_google_maps_example
|
|
|
|
Demonstrates how to use the easy_google_maps plugin.
|
|
|
|
## Getting Started
|
|
|
|
```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',
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
``` |