Repository: flutter
Issue: [google_maps_flutter] Google maps transition from one page to another is buggy.
Labels: c: regression,platform-android,customer: crowd,a: platform-views,p: maps,package,has reproducible steps,P2,found in release: 3.7,team-android,triaged-android

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. Create a new project and add **google_maps_flutter** to it
2. Implement the GoogleMap widget into a new page.
3. Create a new page that will have a button which on click will navigate you to the page with the GoogleMapWidget
4. Click back and you will see what I mean

**Expected results:** <!-- what did you want to see? -->
Google maps to be pushed back and fade out as other UI elements.




**Actual results:** <!-- what did you see? -->
Google maps is pushed back but just disappears

<details>
<summary>Code sample</summary>

<!--
      Please create a minimal reproducible sample that shows the problem
      and attach it below between the lines with the backticks.

      To create it you can use `flutter create bug` command and update the `main.dart` file.

      Alternatively, you can use https://dartpad.dev/
      which is capable of creating and running small Flutter apps.

      Without this we will unlikely be able to progress on the issue, and because of that
      we regretfully will have to close it.
-->

```dart
import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';

void main() {
  runApp(const TestApp());
}

class TestApp extends StatelessWidget {
  const TestApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.dark(useMaterial3: true),
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            Navigator.push(
              context,
              MaterialPageRoute(
                builder: (context) => GoogleMapsPage(),
              ),
            );
          },
          child: Text("Go to google maps"),
        ),
      ),
    );
  }
}

class GoogleMapsPage extends StatelessWidget {
  const GoogleMapsPage({super.key});

  @override
  Widget build(BuildContext context) {
    return GoogleMap(
      //random camera position
      initialCameraPosition: CameraPosition(
        target: LatLng(37.4221, 122.0841),
      ),
    );
  }
}
```

</details>

<details>
 <summary>Logs</summary>

flutter doctor -v
```
[✓] Flutter (Channel flutter-3.7-candidate.19, 3.7.0-19.0.pre, on Microsoft Windows [Version 10.0.22623.1095], locale
    en-US)
    • Flutter version 3.7.0-19.0.pre on channel flutter-3.7-candidate.19 at D:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b4a07de2ae (3 days ago), 2023-01-11 15:19:26 -0500
    • Engine revision ee76ab71e0
    • Dart version 3.0.0 (build 3.0.0-112.0.dev)
    • DevTools version 2.20.0

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at C:\Users\kaloy\AppData\Local\Android\Sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • ANDROID_HOME = C:\Users\kaloy\AppData\Local\Android\Sdk
    • Java binary at:
      C:\Users\kaloy\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\213.7172.25.2113.9123335\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.3)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.4.33205.214
    • Windows 10 SDK version 10.0.22621.0

[✓] Android Studio (version 2021.2)
    • Android Studio at C:\Users\kaloy\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\212.5712.43.2112.8815526
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)

[✓] Android Studio (version 2021.3)
    • Android Studio at C:\Users\kaloy\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\213.7172.25.2113.9123335
    • Flutter plugin version 71.2.3
    • Dart plugin version 213.7433
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3)
    • IntelliJ at C:\Users\kaloy\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-1\223.8214.52
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 223.8214.16

[✓] VS Code (version 1.74.3)
    • VS Code at C:\Users\kaloy\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.56.0

[✓] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22623.1095]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 108.0.5359.126
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 108.0.1462.76

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```

</details>


Tho the bug may be because I use a preview of Flutter 3.7