Repository: flutter
Issue: [Android] Delayed Disappearance of Platform View Compared to Flutter Content When Exiting Page
Labels: platform-android,a: platform-views,P2,platform-views: hc,team-android,triaged-android

#### The platform view disappears later than the Flutter content when exiting the page.


https://user-images.githubusercontent.com/26625149/222136458-00828bcc-9fee-44a3-a7f2-479d2202e455.mp4



## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. Get sample code: `git clone git@github.com:0xZOne/platform_view_performance.git` 
2. Execute `flutter run` 
3. As shown in the video, turn on the `UsingHybridCompostion` switch 
4. Tap on `Matrix Transform` 
5. Go back and observe the result.


**Expected results:** <!-- what did you want to see? -->
The platform view and Flutter content disappear simultaneously.


**Actual results:** <!-- what did you see? -->
The platform view disappears later than the Flutter content.




<details>
  <summary>flutter doctor -v</summary>


<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[✓] Flutter (Channel main, 3.8.0-18.0.pre.4, on macOS 13.1 22C65 darwin-x64, locale zh-Hans-CN)
    • Flutter version 3.8.0-18.0.pre.4 on channel main at /Users/zero/fvm/versions/main
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 87679ff1c3 (27 hours ago), 2023-02-28 10:31:51 +0200
    • Engine revision b78ac04129
    • Dart version 3.0.0 (build 3.0.0-277.0.dev)
    • DevTools version 2.22.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/zero/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • ANDROID_HOME = /Users/zero/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/zero/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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.15+0-b2043.56-8887301)

[✓] VS Code (version 1.75.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (3 available)
    • Pixel 3 (mobile) • 8CVX1TQK1 • android-arm64  • Android 11 (API 30)
    • macOS (desktop)  • macos     • darwin-x64     • macOS 13.1 22C65 darwin-x64
    • Chrome (web)     • chrome    • web-javascript • Google Chrome 110.0.5481.177

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>


<!--
      Consider also attaching screenshots and/or videos to better
      illustrate the issue.

      You can upload them directly on GitHub.
      Beware that video file size is limited to 10MB.
-->