Skip to content

Commit

Permalink
[google_maps_flutter] Temporary fix for initial coordinate when the s…
Browse files Browse the repository at this point in the history
…urface is changed (flutter#6054)
  • Loading branch information
bparrishMines authored and mauricioluz committed Jan 26, 2023
1 parent 49a1678 commit 695ed12
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,12 @@ void main() {
});

testWidgets('testInitialCenterLocationAtCenter', (WidgetTester tester) async {
await tester.binding.setSurfaceSize(const Size(800.0, 600.0));
// TODO(bparrishMines): Remove this line when resizing virtual displays doesn't
// clamp displays that are smaller than the screen.
// See https://github.com/flutter/flutter/issues/106750
AndroidGoogleMapsFlutter.useAndroidViewSurface = true;
await tester.binding.setSurfaceSize(const Size(800, 600));

final Completer<GoogleMapController> mapControllerCompleter =
Completer<GoogleMapController>();
final Key key = GlobalKey();
Expand Down Expand Up @@ -473,6 +478,7 @@ void main() {
.round());
}
await tester.binding.setSurfaceSize(null);
AndroidGoogleMapsFlutter.useAndroidViewSurface = false;
});

testWidgets('testGetVisibleRegion', (WidgetTester tester) async {
Expand Down

0 comments on commit 695ed12

Please sign in to comment.