Repository: flutter
Issue: [PlatformView] [AndroidView] AndroidView Sometimes display blank widget in flutter screen
Labels: e: device-specific,platform-android,a: platform-views,P2,team-android,triaged-android

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

Navigate to the second page and back multiple times

### Expected results

The AndroidView widget works properly

### Actual results

The AndroidView widget sometimes displays blank

### Code sample

<details><summary>Code sample</summary>

I pushed sample code to Github
https://github.com/ddthanh198/test_native_view

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

![373076426_869371534799137_3994363680208134665_n](https://github.com/flutter/flutter/assets/35637061/fb4a8736-c705-4a17-ab22-a5db7d8a1960)
![375013809_332376889240778_7704559553208335304_n](https://github.com/flutter/flutter/assets/35637061/e979f226-8938-42ce-8f86-50ccfa4e8958)


</details>


### Logs

<details><summary>Logs</summary>

There are no error logs shown in logcat

</details>

### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.10.6, on macOS 13.1 22C65 darwin-arm64, locale en-VN)
    • Flutter version 3.10.6 on channel stable at /Users/jackdao/Desktop/flutter
    • Upstream repository [https://github.com/flutter/flutter.git](https://github.com/flutter/flutter.git?fbclid=IwAR1AWYswOxHDu_WMuzIy0YnvIg674OoBkUz9k1oZK4rix8uDNKSnPYjD1cY)
    • Framework revision f468f3366c (9 weeks ago), 2023-07-12 15:19:05 -0700
    • Engine revision cdbeda788a
    • Dart version 3.0.6
    • DevTools version 2.23.1

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/jackdao/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run path/to/sdkmanager --install "cmdline-tools;latest"
      See [https://developer.android.com/studio/command-line](https://developer.android.com/studio/command-line?fbclid=IwAR3pOK3h7n3qdY_43QczWa41ReRl-oELurL_MUUms3QjC4ztszrXF_0Tt0g) for more details.
    ✗ Android license status unknown.
      Run flutter doctor --android-licenses to accept the SDK licenses.
      See [https://flutter.dev/docs/get-started/install/macos#android-setup](https://l.facebook.com/l.php?u=https%3A%2F%2Fflutter.dev%2Fdocs%2Fget-started%2Finstall%2Fmacos%3Ffbclid%3DIwAR2fL6X4pkR9CYYGKzkOlSoTr9gF9MnLIqBXsz1AT_AS7Shx86AoEkH-HTw%23android-setup&h=AT3yTyZCDRv8MjydyH164nCEu1Ls61QHxKsfHbIJcqrbwUb66YVUIYvV9e0U6_MYqApqJUL4nR12YvU3oUvimzfDRm3TuBdfpRxvjLfpKBGOKSkcWOaqjPUnErNxgz3TbXkLDs-eTl0) for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/[Xcode.app/Contents/Developer](https://l.facebook.com/l.php?u=http%3A%2F%2FXcode.app%2FContents%2FDeveloper%3Ffbclid%3DIwAR2_2Ed2iKkAyWIQb9nqgR24KMMipyik6RwoyXTb5q1pXVjiabEN6yaAeqk&h=AT3yTyZCDRv8MjydyH164nCEu1Ls61QHxKsfHbIJcqrbwUb66YVUIYvV9e0U6_MYqApqJUL4nR12YvU3oUvimzfDRm3TuBdfpRxvjLfpKBGOKSkcWOaqjPUnErNxgz3TbXkLDs-eTl0)
    • Build 14C18
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google [Chrome.app/Contents/MacOS/Google](http://chrome.app/Contents/MacOS/Google?fbclid=IwAR3XHYC3lExvGTIBSo-b-ihduQ_s5ezkOSyLxnZ-5P-b_ClPhQ-syaV2d3U) Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android [Studio.app/Contents](https://l.facebook.com/l.php?u=http%3A%2F%2FStudio.app%2FContents%3Ffbclid%3DIwAR0EriA82jMdLZZV9WQu5QPcnT5tx_6ZQmgE2vClE0xzJObCg-6cWCLrd2w&h=AT3yTyZCDRv8MjydyH164nCEu1Ls61QHxKsfHbIJcqrbwUb66YVUIYvV9e0U6_MYqApqJUL4nR12YvU3oUvimzfDRm3TuBdfpRxvjLfpKBGOKSkcWOaqjPUnErNxgz3TbXkLDs-eTl0)
    • Flutter plugin can be installed from:
      🔨 [https://plugins.jetbrains.com/plugin/9212-flutter](https://l.facebook.com/l.php?u=https%3A%2F%2Fplugins.jetbrains.com%2Fplugin%2F9212-flutter%3Ffbclid%3DIwAR3gMbdFV_vhkng8GUSBaYYdBwFA95srzL6gt-snROu3CrOIEmP7aNquHpM&h=AT3yTyZCDRv8MjydyH164nCEu1Ls61QHxKsfHbIJcqrbwUb66YVUIYvV9e0U6_MYqApqJUL4nR12YvU3oUvimzfDRm3TuBdfpRxvjLfpKBGOKSkcWOaqjPUnErNxgz3TbXkLDs-eTl0)
    • Dart plugin can be installed from:
      🔨 [https://plugins.jetbrains.com/plugin/6351-dart](https://l.facebook.com/l.php?u=https%3A%2F%2Fplugins.jetbrains.com%2Fplugin%2F6351-dart%3Ffbclid%3DIwAR0eb5a8V-IQDFOvpLPSc3EmCOhmTzeQuEaPYSKA0hrX_OVdfO8KOuId0OQ&h=AT3yTyZCDRv8MjydyH164nCEu1Ls61QHxKsfHbIJcqrbwUb66YVUIYvV9e0U6_MYqApqJUL4nR12YvU3oUvimzfDRm3TuBdfpRxvjLfpKBGOKSkcWOaqjPUnErNxgz3TbXkLDs-eTl0)
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.81.1)
    • VS Code at /Applications/Visual Studio [Code.app/Contents](https://l.facebook.com/l.php?u=http%3A%2F%2FCode.app%2FContents%3Ffbclid%3DIwAR1-VUrvkPGbsR951erM9OHzgx1ZHTfiZeFbqmRdpQd5kXGtjeeI_S6NSVk&h=AT3yTyZCDRv8MjydyH164nCEu1Ls61QHxKsfHbIJcqrbwUb66YVUIYvV9e0U6_MYqApqJUL4nR12YvU3oUvimzfDRm3TuBdfpRxvjLfpKBGOKSkcWOaqjPUnErNxgz3TbXkLDs-eTl0)
    • Flutter extension can be installed from:
      🔨 [https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter](https://l.facebook.com/l.php?u=https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3DDart-Code.flutter%26fbclid%3DIwAR2vVv_pupt1y-APtzZ5AYZAT0FYBi5ziVDtlaO7tgC4XDdT8-IfYqTbFTk&h=AT3yTyZCDRv8MjydyH164nCEu1Ls61QHxKsfHbIJcqrbwUb66YVUIYvV9e0U6_MYqApqJUL4nR12YvU3oUvimzfDRm3TuBdfpRxvjLfpKBGOKSkcWOaqjPUnErNxgz3TbXkLDs-eTl0)

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 13.1 22C65 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 117.0.5938.62

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.
```

</details>