@@ -433,7 +433,7 @@ void main() {
433433 child: GoogleMap (
434434 key: key,
435435 initialCameraPosition: _kInitialCameraPosition,
436- onMapCreated : (GoogleMapController controller) {
436+ onMapIdle : (GoogleMapController controller) {
437437 mapControllerCompleter.complete (controller);
438438 },
439439 ),
@@ -443,14 +443,15 @@ void main() {
443443 await mapControllerCompleter.future;
444444
445445 await tester.pumpAndSettle ();
446- // TODO(cyanglaz): Remove this after we added `mapRendered` callback, and `mapControllerCompleter.complete(controller)` above should happen
447- // in `mapRendered`.
448- // https://github.com/flutter/flutter/issues/54758
449- await Future .delayed (Duration (seconds: 1 ));
446+ // // TODO(cyanglaz): Remove this after we added `mapRendered` callback, and `mapControllerCompleter.complete(controller)` above should happen
447+ // // in `mapRendered`.
448+ // // https://github.com/flutter/flutter/issues/54758
449+ // await Future.delayed(Duration(seconds: 1));
450450
451451 ScreenCoordinate coordinate =
452452 await mapController.getScreenCoordinate (_kInitialCameraPosition.target);
453453 Rect rect = tester.getRect (find.byKey (key));
454+ print (coordinate);
454455 if (Platform .isIOS) {
455456 // On iOS, the coordinate value from the GoogleMapSdk doesn't include the devicePixelRatio`.
456457 // So we don't need to do the conversion like we did below for other platforms.
@@ -468,7 +469,7 @@ void main() {
468469 tester.binding.window.devicePixelRatio)
469470 .round ());
470471 }
471- });
472+ }, skip : true ); // https://github.com/flutter/flutter/issues/54758
472473
473474 testWidgets ('testGetVisibleRegion' , (WidgetTester tester) async {
474475 final Key key = GlobalKey ();
0 commit comments