File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/google_maps_flutter/google_maps_flutter/example/integration_test Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,12 @@ void main() {
426426 });
427427
428428 testWidgets ('testInitialCenterLocationAtCenter' , (WidgetTester tester) async {
429- await tester.binding.setSurfaceSize (const Size (800.0 , 600.0 ));
429+ // TODO(bparrishMines): Remove this line when resizing virtual displays doesn't
430+ // clamp displays that are smaller than the screen.
431+ // See https://github.com/flutter/flutter/issues/106750
432+ AndroidGoogleMapsFlutter .useAndroidViewSurface = true ;
433+ await tester.binding.setSurfaceSize (const Size (800 , 600 ));
434+
430435 final Completer <GoogleMapController > mapControllerCompleter =
431436 Completer <GoogleMapController >();
432437 final Key key = GlobalKey ();
@@ -473,6 +478,7 @@ void main() {
473478 .round ());
474479 }
475480 await tester.binding.setSurfaceSize (null );
481+ AndroidGoogleMapsFlutter .useAndroidViewSurface = false ;
476482 });
477483
478484 testWidgets ('testGetVisibleRegion' , (WidgetTester tester) async {
You can’t perform that action at this time.
0 commit comments