Repository: flutter
Issue: [Webview_flutter][Regression]: Navigating from webview using SurfaceAndroidView composition shows a flash on screen. 
Labels: c: regression,f: routes,p: webview,package,team-ecosystem,has reproducible steps,P2,found in release: 2.8,found in release: 2.9,platform-views: hc,triaged-ecosystem

Sorry, i've got a problem.
I ran webview_flutter latest demo,
On the main page, i jump to a new page, but there is a flash screen and an error log.

`Error log:BufferItemConsumer(18444): [ImageReader-1080x1920f1m3-18444-0] Failed to release buffer: Unknown error -1.
`
This happens to both surfaceandroidwebview and androidwebview.
Here is my running environment and code.


```
Flutter 2.8.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 77d935af4d (4 days ago) • 2021-12-16 08:37:33 -0800
Engine • revision 890a5fca2e
Tools • Dart 2.15.1
```

```
[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.18363.1556], locale zh-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[√] Android Studio (version 4.1)
[√] Connected device (3 available)

! Doctor found issues in 1 category.
```


```
name: webview_flutter
description: A Flutter plugin that provides a WebView widget on Android and iOS.
repository: https://github.com/flutter/plugins/tree/master/packages/webview_flutter/webview_flutter
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview%22
version: 3.0.0
environment:
  sdk: ">=2.14.0 <3.0.0"
  flutter: ">=2.5.0"
flutter:
  plugin:
    platforms:
      android:
        default_package: webview_flutter_android
      ios:
        default_package: webview_flutter_wkwebview
dependencies:
  flutter:
    sdk: flutter
  webview_flutter_android: ^2.8.0
  webview_flutter_platform_interface: ^1.8.0
  webview_flutter_wkwebview: ^2.7.0
dev_dependencies:
  build_runner: ^2.1.5
  flutter_driver:
    sdk: flutter
  flutter_test:
    sdk: flutter
  mockito: ^5.0.16
  pedantic: ^1.10.0
```








```
main.dart : Navigator.of(context).push(new MaterialPageRoute(builder: (context) {
                return new WebViewPage();
              }));

web.dart:
class WebViewPage extends StatefulWidget {
  WebViewPage();
  @override
  WebViewPageState createState() => WebViewPageState();
}


class WebViewPageState extends State<WebViewPage> {
  @override
  void initState() {
    // TODO: implement initState
    print('WebViewPageState::initState');
    super.initState();
    print('WebViewPageState::initStatedddddd');
  }

  @override
  Widget build(BuildContext context) {
    print('WebViewPageState::build');

    return Scaffold(
        appBar: AppBar(
          title: Text('WebViewPageState'),
        ),
        body:
        Container(
          padding: EdgeInsets.only(right: 10),
          color: Colors.yellow,
          height: 340,
          child: Text("dsdsd"),
        )
     );
  }

}
```


https://user-images.githubusercontent.com/24805839/146727627-831025e3-a327-49ec-9517-d157cd4ed13d.mp4