Repository: flutter
Issue: [android] White space appears at the bottom of the screen in full screen mode in release mode 
Labels: platform-android,framework,e: OS-version specific,a: release,P2,team-android,triaged-android

https://user-images.githubusercontent.com/56363793/137047661-5b409219-93da-4b2a-877b-4f3a9995e8d1.mp4

For full screen I use:
` SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: []);` code is not working as expected. (or `SystemUiMode.immersiveSticky`)


When the application starts, an empty white area appears in the place of the navigation bar. This space disappears when the app is called again from the background.
This empty space is not visible in debug mode. It appears to be in **release mode**. But not always, there is a randomness. If you do not see this empty space in release mode, close the app and start it again (maybe more than once).

Flutter 2.5.2 has this problem. It wasn't there in 2.2.3.

<details>
<summary>Code sample</summary>

```
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: []);
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @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({Key? key, required this.title}) : super(key: key);

  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: Container(
        width: double.infinity,
        height: double.infinity,
        color: Colors.green.withOpacity(0.5),
        child: 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>flutter doctor -v</summary>

```
[√] Flutter (Channel stable, 2.5.2, on Microsoft Windows [Version 10.0.19041.1237], locale tr-TR)
    • Flutter version 2.5.2 at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 3595343e20 (12 days ago), 2021-09-30 12:58:18 -0700
    • Engine revision 6ac856380f
    • Dart version 2.14.3

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = C:\sdk
    • ANDROID_SDK_ROOT = C:\sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1)
    • Android Studio at C:\Program Files\Android\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_242-release-1644-b01)

[√] IntelliJ IDEA Community Edition (version 2020.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.3
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 202.8070

[√] Connected device (3 available)
    • Redmi Note 5 (mobile) • 9277cc1d • android-arm64  • Android 9 (API 28)
    • Chrome (web)          • chrome   • web-javascript • Google Chrome 94.0.4606.81
    • Edge (web)            • edge     • web-javascript • Microsoft Edge 94.0.992.31

• No issues found!

```

</details>