forked from ibhavikmakwana/FlutterPlayground
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGoogleMapsExample.dart
More file actions
74 lines (74 loc) · 2.15 KB
/
GoogleMapsExample.dart
File metadata and controls
74 lines (74 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//// Copyright 2020 The Chromium Authors. All rights reserved.
//// Use of this source code is governed by a BSD-style license that can be
//// found in the LICENSE file.
//
//import 'package:flutter/material.dart';
//import 'package:google_maps_flutter/google_maps_flutter.dart';
//
//class GoogleMapsExample extends StatefulWidget {
// final String title;
//
// GoogleMapsExample(this.title);
//
// @override
// State createState() => GoogleMapsExampleState();
//}
//
//class GoogleMapsExampleState extends State<GoogleMapsExample> {
// GoogleMapController mapController;
//
// @override
// Widget build(BuildContext context) {
// return Scaffold(
// appBar: AppBar(
// title: Text(widget.title),
// ),
// body: Stack(
// children: [
// Container(
// width: double.infinity,
// height: double.infinity,
// child: GoogleMap(
// initialCameraPosition: const CameraPosition(
// bearing: 270.0,
// target: LatLng(23.0225, 72.5714),
// tilt: 30.0,
// zoom: 17.0,
// ),
// onMapCreated: _onMapCreated,
// ),
// ),
// Padding(
// padding: const EdgeInsets.all(8.0),
// child: Align(
// alignment: Alignment.bottomRight,
// child: FloatingActionButton(
// onPressed: mapController == null
// ? null
// : () {
// mapController
// .animateCamera(CameraUpdate.CameraPosition(
// const CameraPosition(
// bearing: 270.0,
// target: LatLng(23.0225, 72.5714),
// tilt: 30.0,
// zoom: 17.0,
// ),
// ));
// },
// mini: true,
// child: Icon(Icons.my_location),
// ),
// ),
// ),
// ],
// ),
// );
// }
//
// void _onMapCreated(GoogleMapController controller) {
// setState(() {
// mapController = controller;
// });
// }
//}