Repository: flutter
Issue: Add cutout display options for letterboxed Android devices in fullscreen
Labels: c: new feature,e: device-specific,platform-android,framework,engine,a: fidelity,e: OS-version specific,a: layout,P3,team-android,triaged-android

Android fullscreen support **[leanBack, immersive, immersiveSticky]** has what appear to be device specific issues resulting in letterboxing over the status bar / notch area in Pixels 4 and 5. Pixel 3 shows no issue. 

I think this requires an additional layout flag for cutouts:
https://developer.android.com/guide/topics/display-cutout

**This seems like the fullscreen display we are seeing with the letterbox is the expected default**, but we should add support for users to configure the other layout options for cutouts.

**Note:** also check Pixel 6 when available, or Pixel 4a, these have camera holes embedded in the screen differently from these devices here.

```dart
void main() {
  WidgetsFlutterBinding.ensureInitialized();
  // leanBack, immersive, immersiveSticky letterbox the top of the screen on *some* devices.
  // edgeToEdge does not have an issue
  SystemChrome.setEnabledSystemUIMode(SystemUiMode.leanBack);
  runApp(const MyApp());
}
```

| API / Device | 30 | 31 |
| --- | --- | --- |
| Pixel 3 ✅  | ![Pixel-3-30-LB](https://user-images.githubusercontent.com/16964204/132392195-80aea48d-d706-4218-b2c9-63254352da5a.png) | ![Pixel-3-31-LB](https://user-images.githubusercontent.com/16964204/132392345-78ce4ed2-b9a4-4cd7-a8db-91fc6f23f8c2.png) |
| Pixel 4 ❓ | ![Pixel-4-30-LB-X](https://user-images.githubusercontent.com/16964204/132392399-ff158a31-e4e4-47d9-a26d-6c258e2146b3.png) | ![Pixel-4-31-LB-X](https://user-images.githubusercontent.com/16964204/132392428-19c3f076-7de3-41cb-9f69-4297780cfc4d.png) |
| Pixel 5 ❓  | ![Pixel-5-30-LB-X](https://user-images.githubusercontent.com/16964204/132392495-e63a93b6-311a-45a9-8707-41a1b69e0fb5.png) | ![Pixel-5-31-LB-X](https://user-images.githubusercontent.com/16964204/132392515-15d6fa3b-547d-4cab-a81a-13a87e187196.png) |


 ## More Info
<details>
<summary>Same table, set to edgeToEdge display for comparison</summary>

| API / Device | 30 | 31 |
| --- | --- | --- |
| Pixel 3 ✅  | ![Pixel-3-30-E2E](https://user-images.githubusercontent.com/16964204/132392695-af34a2f3-cac1-4ad6-ada3-a1bd6148e16c.png) | ![Pixel-3-31-E2E](https://user-images.githubusercontent.com/16964204/132392756-d62cff2e-f12c-4fbf-bb5c-f20d6b8f3b42.png) |
| Pixel 4 ✅  | ![Pixel-4-30-E2E](https://user-images.githubusercontent.com/16964204/132392781-a7d39948-5c20-42dc-8269-5d7d0332afec.png) | ![Pixel-4-31-E2E](https://user-images.githubusercontent.com/16964204/132392803-a1e40894-d5e4-490d-afb6-a836101eac8c.png) |
| Pixel 5 ✅  | ![Pixel-5-30-E2E](https://user-images.githubusercontent.com/16964204/132392828-945fb608-de60-41e4-98b0-79c055e6c4bd.png) | ![Pixel-5-31-E2E](https://user-images.githubusercontent.com/16964204/132392854-eb238ad6-d66d-4ae4-907d-36dfca556817.png) |

</details>

<details>
<summary>flutter doctor -v </summary>
```
[✓] Flutter (Channel unknown, 2.6.0-1.0.pre.178, on macOS 11.5.1 20G80 darwin-x64, locale en)
    • Flutter version 2.6.0-1.0.pre.178 at /Users/katelovett/_github/flutter
    • Upstream repository unknown
    • Framework revision 243c6bcd3c (4 days ago), 2021-09-03 14:13:23 -0500
    • Engine revision 01792f78e9
    • Dart version 2.15.0 (build 2.15.0-69.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/katelovett/Library/Android/sdk
    • Platform android-S, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio with Blaze.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/Xcode.app/Contents/Developer
    • 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 with Blaze.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)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.1.3)
    • IntelliJ at /Applications/IntelliJ UE (stable).app
    • 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

[✓] VS Code (version 1.59.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (4 available)
    • Pixel 4 (mobile)            • 99051FFAZ00B06 • android-arm64  • Android 11 (API 30)
    • sdk gphone x86 arm (mobile) • emulator-5554  • android-x86    • Android 11 (API 30) (emulator)
    • macOS (desktop)             • macos          • darwin-x64     • macOS 11.5.1 20G80 darwin-x64
    • Chrome (web)                • chrome         • web-javascript • Google Chrome 93.0.4577.63

• No issues found!
```
</details>