Skip to content

Commit 285e059

Browse files
Revert "Add a gestureRecognizers parameter to GoogleMap. (flutter#755)"
This reverts commit d70b455.
1 parent 2cc9995 commit 285e059

File tree

4 files changed

+2
-133
lines changed

4 files changed

+2
-133
lines changed

packages/google_maps_flutter/example/lib/main.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ import 'map_ui.dart';
88
import 'move_camera.dart';
99
import 'page.dart';
1010
import 'place_marker.dart';
11-
import 'scrolling_map.dart';
1211

1312
final List<Page> _allPages = <Page>[
1413
MapUiPage(),
1514
AnimateCameraPage(),
1615
MoveCameraPage(),
1716
PlaceMarkerPage(),
18-
ScrollingMapPage(),
1917
];
2018

2119
class MapsDemo extends StatelessWidget {

packages/google_maps_flutter/example/lib/scrolling_map.dart

Lines changed: 0 additions & 107 deletions
This file was deleted.

packages/google_maps_flutter/lib/google_maps_flutter.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import 'dart:async';
88
import 'dart:ui';
99

1010
import 'package:flutter/foundation.dart';
11-
import 'package:flutter/gestures.dart';
1211
import 'package:flutter/material.dart';
1312
import 'package:flutter/services.dart';
1413

packages/google_maps_flutter/lib/src/google_map.dart

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,14 @@
1-
// Copyright 2018 The Chromium Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style license that can be
3-
// found in the LICENSE file.
4-
51
part of google_maps_flutter;
62

73
typedef void MapCreatedCallback(GoogleMapController controller);
84

95
class GoogleMap extends StatefulWidget {
10-
GoogleMap({
11-
@required this.onMapCreated,
12-
GoogleMapOptions options,
13-
this.gestureRecognizers = const <OneSequenceGestureRecognizer>[],
14-
}) : assert(gestureRecognizers != null),
15-
this.options = GoogleMapOptions.defaultOptions.copyWith(options);
6+
GoogleMap({@required this.onMapCreated, GoogleMapOptions options})
7+
: this.options = GoogleMapOptions.defaultOptions.copyWith(options);
168

179
final MapCreatedCallback onMapCreated;
18-
1910
final GoogleMapOptions options;
2011

21-
/// Which gestures should be consumed by the map.
22-
///
23-
/// It is possible for other gesture recognizers to be competing with the map on pointer
24-
/// events, e.g if the map is inside a [ListView] the [ListView] will want to handle
25-
/// vertical drags. The map will claim gestures that are recognized by any of the
26-
/// recognizers on this list.
27-
///
28-
/// When this list is empty, the map will only handle pointer events for gestures that
29-
/// were not claimed by any other gesture recognizer.
30-
final List<OneSequenceGestureRecognizer> gestureRecognizers;
31-
3212
@override
3313
State createState() => new _GoogleMapState();
3414
}
@@ -40,7 +20,6 @@ class _GoogleMapState extends State<GoogleMap> {
4020
return AndroidView(
4121
viewType: 'plugins.flutter.io/google_maps',
4222
onPlatformViewCreated: onPlatformViewCreated,
43-
gestureRecognizers: widget.gestureRecognizers,
4423
creationParams: widget.options._toJson(),
4524
creationParamsCodec: const StandardMessageCodec(),
4625
);

0 commit comments

Comments
 (0)