Skip to content

Commit e49ebcb

Browse files
Chris YangEgor
authored andcommitted
[google_maps_flutter] use WaitUntilTouchesEndedPolicy to fix the cameraIdle not called issue on iOS (flutter#2746)
1 parent 019bf58 commit e49ebcb

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.5.27+3
2+
3+
* iOS: Update the gesture recognizer blocking policy to "WaitUntilTouchesEnded", which fixes the camera idle callback not triggered issue.
4+
* Update the min flutter version to 1.16.3.
5+
16
## 0.5.27+2
27

38
* Update lower bound of dart dependency to 2.1.0.

packages/google_maps_flutter/google_maps_flutter/example/test_driver/google_maps_e2e.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,5 +940,5 @@ void main() {
940940
final GoogleMapInspector inspector = await inspectorCompleter.future;
941941
final Uint8List bytes = await inspector.takeSnapshot();
942942
expect(bytes?.isNotEmpty, true);
943-
});
943+
}, skip: Platform.isAndroid);
944944
}

packages/google_maps_flutter/google_maps_flutter/ios/Classes/FLTGoogleMapsPlugin.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ @implementation FLTGoogleMapsPlugin {
1414

1515
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
1616
FLTGoogleMapFactory* googleMapFactory = [[FLTGoogleMapFactory alloc] initWithRegistrar:registrar];
17-
[registrar registerViewFactory:googleMapFactory withId:@"plugins.flutter.io/google_maps"];
17+
[registrar registerViewFactory:googleMapFactory
18+
withId:@"plugins.flutter.io/google_maps"
19+
gestureRecognizersBlockingPolicy:
20+
FlutterPlatformViewGestureRecognizersBlockingPolicyWaitUntilTouchesEnded];
1821
}
1922

2023
- (FLTGoogleMapController*)mapFromCall:(FlutterMethodCall*)call error:(FlutterError**)error {

packages/google_maps_flutter/google_maps_flutter/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: google_maps_flutter
22
description: A Flutter plugin for integrating Google Maps in iOS and Android applications.
33
homepage: https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter/google_maps_flutter
4-
version: 0.5.27+2
4+
version: 0.5.27+3
55

66
dependencies:
77
flutter:
@@ -31,4 +31,4 @@ flutter:
3131

3232
environment:
3333
sdk: ">=2.1.0 <3.0.0"
34-
flutter: ">=1.12.13+hotfix.5 <2.0.0"
34+
flutter: ">=1.16.3 <2.0.0"

0 commit comments

Comments
 (0)