Repository: flutter
Issue: [shared engine, platform_view, Hybrid Composition] PlatformView flashes white screen
Labels: platform-android,engine,a: platform-views,c: rendering,has reproducible steps,P2,found in release: 2.8,found in release: 2.9,team-android,triaged-android


Screen recording | Open page | Go back
--- | --- | ---
<video src="https://user-images.githubusercontent.com/26625149/150919116-1ba5e467-928e-4fc3-af75-0735a4c09cde.mp4" /> | ![2022_01_25_114124718](https://user-images.githubusercontent.com/26625149/150919080-ec7bad13-c3b5-4dd3-b5dd-7715213f15c6.jpg) | ![2022_01_25_113937275](https://user-images.githubusercontent.com/26625149/150919104-d27a2a9c-9d2c-4112-9949-7521d2ae89db.jpg) 

#### As shown in the video, there are two `PlatformView` pages, A and B. when opening `B` from `A`, or going back to `A` from `B`, the transition animation will flash white screen.


------

## Steps to Reproduce

1. Get demo as below:

```git
git clone -b task/boost3.0_for_2.8.x https://github.com/0xZOne/flutter_boost.git
```
2. Enter the `example` directory and execute `flutter run`.

3. Follow the video steps.

<details>
  <summary>flutter doctor -v</summary>


```
[✓] Flutter (Channel master, 2.9.0-1.0.pre.491, on macOS 12.0.1 21A559 darwin-x64, locale zh-Hans-CN)
    • Flutter version 2.9.0-1.0.pre.491 at /Users/zero/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7ec334827a (8 hours ago), 2022-01-24 19:50:10 -0800
    • Engine revision 83cfdcc8f1
    • Dart version 2.17.0 (build 2.17.0-51.0.dev)
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1)
    • Android SDK at /Users/zero/Library/Android/sdk
    • Platform android-32, build-tools 32.0.0-rc1
    • ANDROID_HOME = /Users/zero/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/zero/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 12.5.1)
    • Xcode at /Applications/Xcode12.5.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • 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.10+0-b96-7281165)

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • NOH AN00 (mobile) • PQY5T20A14002065 • android-arm64  • Android 10 (API 29)
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 97.0.4692.99

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.
```

</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.
-->