Skip to content

Commit 69aa277

Browse files
authored
Merge pull request #16 from filiph/fix/revert-region-tags
Revert "Add region tags to samples"
2 parents a52d68f + a4efd49 commit 69aa277

17 files changed

+0
-36
lines changed

lib/samples/basic.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import 'package:flutter/material.dart';
1616
import 'package:google_maps_flutter/google_maps_flutter.dart';
1717

1818
/// This example creates a map using the [GoogleMap] widget.
19-
// [START maps_flutter_basic]
2019
class BasicSample extends StatelessWidget {
2120
const BasicSample({super.key});
2221

@@ -28,4 +27,3 @@ class BasicSample extends StatelessWidget {
2827
);
2928
}
3029
}
31-
// [END maps_flutter_basic]

lib/samples/camera_animate.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class AnimateCameraSample extends StatefulWidget {
2525
}
2626

2727
class _AnimateCameraSampleState extends State<AnimateCameraSample> {
28-
// [START maps_flutter_animate_camera]
2928
/// An instance of map controller obtained through `onMapCreated`.
3029
GoogleMapController? _controller;
3130

@@ -50,7 +49,6 @@ class _AnimateCameraSampleState extends State<AnimateCameraSample> {
5049

5150
@override
5251
void dispose() {
53-
// Prevent erroneous use of controller after widget disposed.
5452
_controller = null;
5553
super.dispose();
5654
}
@@ -65,5 +63,4 @@ class _AnimateCameraSampleState extends State<AnimateCameraSample> {
6563
// Start the animation.
6664
_controller?.animateCamera(update);
6765
}
68-
// [END maps_flutter_animate_camera]
6966
}

lib/samples/camera_move.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class MoveCameraSample extends StatefulWidget {
2525
}
2626

2727
class _MoveCameraSampleState extends State<MoveCameraSample> {
28-
// [START maps_flutter_move_camera]
2928
/// An instance of map controller obtained through `onMapCreated`.
3029
GoogleMapController? _controller;
3130

@@ -50,7 +49,6 @@ class _MoveCameraSampleState extends State<MoveCameraSample> {
5049

5150
@override
5251
void dispose() {
53-
// Prevent erroneous use of controller after widget disposed.
5452
_controller = null;
5553
super.dispose();
5654
}
@@ -64,5 +62,4 @@ class _MoveCameraSampleState extends State<MoveCameraSample> {
6462
// Move the camera.
6563
_controller?.moveCamera(update);
6664
}
67-
// [END maps_flutter_move_camera]
6865
}

lib/samples/handle_events.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class _HandleEventsSampleState extends State<HandleEventsSample> {
3131
Widget build(BuildContext context) {
3232
return Stack(
3333
children: [
34-
// [START maps_flutter_handle_events]
3534
GoogleMap(
3635
initialCameraPosition: CameraPosition(target: LatLng(0, 0)),
3736
onTap: (position) => setState(() => _response = 'Tapped $position.'),
@@ -43,7 +42,6 @@ class _HandleEventsSampleState extends State<HandleEventsSample> {
4342
),
4443
},
4544
),
46-
// [END maps_flutter_handle_events]
4745
Align(
4846
alignment: Alignment(0, 0.8),
4947
child: Card(

lib/samples/map_controller_async.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class MapControllerAsyncSample extends StatefulWidget {
2828
}
2929

3030
class _MapControllerAsyncSampleState extends State<MapControllerAsyncSample> {
31-
// [START maps_flutter_map_controller_async]
3231
/// An async completer that we supply with the map controller
3332
/// as soon as the `onMapCreated` callback is fired.
3433
final Completer<GoogleMapController> _completer = Completer();
@@ -83,5 +82,4 @@ class _MapControllerAsyncSampleState extends State<MapControllerAsyncSample> {
8382
// Use the controller.
8483
controller.animateCamera(CameraUpdate.zoomIn());
8584
}
86-
// [END maps_flutter_map_controller_async]
8785
}

lib/samples/map_id.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ class MapIdSample extends StatelessWidget {
2121

2222
@override
2323
Widget build(BuildContext context) {
24-
// [START maps_flutter_map_id]
2524
return GoogleMap(
2625
initialCameraPosition: CameraPosition(target: LatLng(0, 0)),
2726

2827
// Generate your own map ID at https://goo.gle/get-map-id.
2928
cloudMapId: '78434bee6dc2e9b1',
3029
);
31-
// [END maps_flutter_map_id]
3230
}
3331
}

lib/samples/map_type.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class MapTypeSample extends StatelessWidget {
2222

2323
@override
2424
Widget build(BuildContext context) {
25-
// [START maps_flutter_map_type]
2625
return GoogleMap(
2726
initialCameraPosition: CameraPosition(target: LatLng(0, 0)),
2827

@@ -33,6 +32,5 @@ class MapTypeSample extends StatelessWidget {
3332
// .hybrid - Satellite imagery with road overlays and place labels
3433
mapType: MapType.satellite,
3534
);
36-
// [END maps_flutter_map_type]
3735
}
3836
}

lib/samples/marker.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class MarkerSample extends StatelessWidget {
2222

2323
@override
2424
Widget build(BuildContext context) {
25-
// [START maps_flutter_marker]
2625
return GoogleMap(
2726
initialCameraPosition: CameraPosition(target: LatLng(0, 0)),
2827

@@ -37,6 +36,5 @@ class MarkerSample extends StatelessWidget {
3736
),
3837
},
3938
);
40-
// [END maps_flutter_marker]
4139
}
4240
}

lib/samples/marker_clusters.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import 'package:google_maps_flutter/google_maps_flutter.dart';
1717

1818
/// Defines a group of nearby markers as a cluster so that the map can
1919
/// collapse them into a single marker when appropriate.
20-
// [START maps_flutter_clusters]
2120
class ClustersSample extends StatelessWidget {
2221
ClustersSample({super.key});
2322

@@ -70,4 +69,3 @@ class ClustersSample extends StatelessWidget {
7069
);
7170
}
7271
}
73-
// [END maps_flutter_clusters]

lib/samples/marker_clusters_dynamic.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class DynamicClustersSample extends StatefulWidget {
2424
}
2525

2626
class _DynamicClustersSampleState extends State<DynamicClustersSample> {
27-
// [START maps_flutter_dynamic_clusters]
2827
Set<ClusterManager> _clusters = {};
2928

3029
Set<Marker> _markers = {
@@ -74,5 +73,4 @@ class _DynamicClustersSampleState extends State<DynamicClustersSample> {
7473
_markers = updatedMarkers;
7574
});
7675
}
77-
// [END maps_flutter_dynamic_clusters]
7876
}

0 commit comments

Comments
 (0)