Repository: flutter
Issue: Redundant space appears above keyboard when putting `Scaffold` and `NavigationBar` in a `Column`
Labels: a: text input,framework,has reproducible steps,P2,team-design,triaged-design,found in release: 3.13,found in release: 3.15

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

1. Put `Scaffold` and `NavigationBar` in a `Column`
2. Show keyboard


I don't want to put `NavigationBar` into `Scaffold`.
The reason is that I want to put `Scaffold` on each destinations to change `AppBar` behavior and support to scroll up when tapping status bar on iOS.
Nested `Scaffold` makes difficult to control behavior of tapping status bar (#85603).

Is this intended behavior? 

### Expected results

No space appears above keyboard.

I can avoid this problem with using `CustomMultiChildLayout` instead of `Column`, like `Scaffold` do.

### Actual results

Space (has height as same as `NavigationBar` height) appears above keyboard.

### Code sample

<details><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Column(
        children: [
          Expanded(
            child: Scaffold(
              backgroundColor: Colors.red,
              body: ColoredBox(
                color: Colors.green,
                child: SingleChildScrollView(
                  child: Column(
                    children: [
                      SizedBox.fromSize(
                        size: const Size.fromHeight(2000),
                      ),
                      const Padding(
                        padding: EdgeInsets.all(8),
                        child: TextField(),
                      ),
                    ],
                  ),
                ),
              ),
            ),
          ),
          MediaQuery.removePadding(
            context: context,
            removeTop: true,
            child: NavigationBar(
              destinations: const [
                NavigationDestination(
                  icon: Icon(Icons.home),
                  label: 'Home',
                ),
                NavigationDestination(
                  icon: Icon(Icons.search),
                  label: 'Search',
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

https://github.com/flutter/flutter/assets/12420269/40fd8c11-7106-4d67-935b-da22b0e14e49

</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.13.6, on macOS 13.5.2 22G91 darwin-arm64, locale ja-JP)
    • Flutter version 3.13.6 on channel stable at /Users/seiyakokushi/.asdf/installs/flutter/3.13.6
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ead455963c (4 days ago), 2023-09-26 18:28:17 -0700
    • Engine revision a794cf2681
    • Dart version 3.1.3
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/seiyakokushi/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • ANDROID_SDK_ROOT = /Users/seiyakokushi/Library/Android/sdk
    • Java binary at: /Users/seiyakokushi/Applications/Android Studio Giraffe 2022.3.1 Patch
      2.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode-14.3.1.app/Contents/Developer
    • Build 14E300c
    ✗ CocoaPods installed but not working.
        You appear to have CocoaPods installed but it is not working.
        This can happen if the version of Ruby that CocoaPods was installed with is different from the
        one being used to invoke it.
        This can usually be fixed by re-installing CocoaPods.
      To re-install see https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version unknown)
    • Android Studio at /Users/seiyakokushi/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
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build 17.0.8+0-17.0.8b1000.22-10799086)

[✓] Android Studio (version 2022.3)
    • Android Studio at /Users/seiyakokushi/Applications/Android Studio Giraffe 2022.3.1 Patch
      2.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 17.0.6+0-17.0.6b829.9-10027231)

[!] Android Studio (version unknown)
    • Android Studio at /Users/seiyakokushi/Applications/Android Studio Hedgehog 2023.1.1 Beta
      6.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
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.2)
    • IntelliJ at /Users/seiyakokushi/Applications/IntelliJ IDEA Ultimate.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

[✓] IntelliJ IDEA Ultimate Edition (version EAP IU-233.8264.8)
    • IntelliJ at /Users/seiyakokushi/Applications/IntelliJ IDEA Ultimate 2023.3 EAP.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.81.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.64.0

[✓] Connected device (4 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554                        • android-arm64  • Android 13
      (API 33) (emulator)
    • iPhone 14 Pro (mobile)      • 35FDFF0F-6276-4BE1-BF9E-92659B59B465 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)             • macos                                • darwin-arm64   • macOS
      13.5.2 22G91 darwin-arm64
    • Chrome (web)                • chrome                               • web-javascript • Google
      Chrome 117.0.5938.132

[✓] Network resources
    • All expected network resources are available.
```

</details>