Repository: flutter
Issue: Screen shows black area when rotate the device orientation using physical device
Labels: e: device-specific,platform-android,framework,a: layout,P2,team-android,triaged-android

## Environment
**Android Studio:**
Android Studio Dolphin 2021.3.3 Patch1 Build #AI-213.7172.25.2113.9123335, built on September 30, 2022

**Physical device:**
OPPO CPH 1725, ColorOS Version: V3.2, Android Version: 7.1.1

## Steps to Reproduce

1. Create project using Android studio, "File > New > New Flutter Project"
2. Execute `flutter run --release` on the code sample using release mode(debug mode has no problem) 
3. Rotate the device orientation(portrait to landscape or landscape to portrait), repeat it, you will see the problem as actual results, sometimes shows correctly, sometimes shows incorrectly.

<details>
<summary>Code sample(it can be reproduced by useing flutter offical sample code)</summary>

```dart

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ), 
    );
  }
}


```

</details>

<details>
  <summary>Logs</summary>


  <summary>flutter analyze --device-id U4EQFA5TTGLJWCP7</summary>

```

PS D:\Projects\bak\test> flutter analyze --device-id U4EQFA5TTGLJWCP7
Analyzing test...                                                       
No issues found! (ran in 3.4s)
PS D:\Projects\bak\test> 

```

  <summary>flutter doctor -v</summary>

```

PS D:\Projects\bak\test> flutter doctor -v

[√] Flutter (Channel stable, 3.3.5, on Microsoft Windows [版本 10.0.19044.2130], locale zh-TW)
    • Flutter version 3.3.5 on channel stable at D:\ide\flutter\flutter                       
    • Upstream repository https://github.com/flutter/flutter.git                              
    • Framework revision d9111f6402 (3 days ago), 2022-10-19 12:27:13 -0700
    • Engine revision 3ad69d7be3                                           
    • Dart version 2.18.2                                                  
    • DevTools version 2.15.0                                              
                                                                           
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)    
    • Android SDK at D:\ide\android\sdk                                             
    • Platform android-33, build-tools 33.0.0                                       
    • ANDROID_HOME = D:\ide\android\sdk                                             
    • Java binary at: D:\ide\android\android-studio-2021.2.1.16-windows\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               
                                                                                    
[X] Visual Studio - develop for Windows                                             
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 3.0)
    • Android Studio at D:\java\androidsdk\android-studio
    • 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 1.8.0_152-release-915-b01)

[√] Android Studio (version 2021.3)
    • Android Studio at D:\ide\android\android-studio-2021.2.1.16-windows
    • 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.13+0-b1751.21-8125866)

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [版本 10.0.19044.2130]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 106.0.5249.119
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 106.0.1370.52

[√] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.


```

</details>


**Expected results:** 
1.
<img width="300" src="https://user-images.githubusercontent.com/116478077/197378877-edfcee3e-6da1-4c6f-98ed-3576f4df9680.jpg">
2.
<img width="300" src="https://user-images.githubusercontent.com/116478077/197378885-1632bb64-87e9-4559-b8bc-98fcb222ecf5.jpg">

**Actual results:** 
1.
<img width="300" src="https://user-images.githubusercontent.com/116478077/197379099-8553bc41-cfe7-4874-96d1-3f65eaa78c91.jpg">
2.
<img width="300" src="https://user-images.githubusercontent.com/116478077/197379106-de1c3ec7-4d75-46fe-9cc3-58479bfec157.jpg">
3.
<img width="300" src="https://user-images.githubusercontent.com/116478077/197379108-0fcac6fa-841b-4c25-9c7c-81f680957e21.jpg">
4.
<img width="300" src="https://user-images.githubusercontent.com/116478077/197379130-d253ad3a-7b3f-43e2-9a33-0ec97b556a87.jpg">