adding packages
This commit is contained in:
@@ -0,0 +1 @@
|
||||
const kGoogleMapsApiKey = 'YOUR_API_KEY_HERE';
|
||||
@@ -0,0 +1,23 @@
|
||||
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',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user