Repository: flutter
Issue: It is impossible to make overlay widget move up when keyboard shows
Labels: framework,f: material design,has reproducible steps,P3,team-framework,triaged-framework,found in release: 3.13,found in release: 3.14

### 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

Just run the following code


Add a overlay widget with textfield and enter something




Whatever I do I can't make the overlay widget top of the keyboard


This is SERIOUS issue in flutter



### Expected results

the overlay widget should be above the keyboard

### Actual results

https://ibb.co/NjNYZd6


### Code sample


```
import 'package:flutter/material.dart';

class OverLayWidget extends StatefulWidget {
  const OverLayWidget({super.key});

  @override
  State<OverLayWidget> createState() => _OverLayWidgetState();
}

class _OverLayWidgetState extends State<OverLayWidget> {
  List<GlobalKey> keys = List.generate(25, (index) => GlobalKey());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: GridView.builder(
        gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
            crossAxisCount: 4,
            mainAxisSpacing: 32,
            crossAxisSpacing: 32,
            mainAxisExtent: 120),
        itemBuilder: (_, int pos) {
          return _Item(
            index: pos,
            itemKey: keys[pos],
          );
        },
        itemCount: keys.length,
      ),
    );
  }
}

class _Item extends StatefulWidget {
  final GlobalKey itemKey;

  final int index;

  const _Item({super.key, required this.itemKey, required this.index});

  @override
  State<_Item> createState() => _ItemState();
}

class _ItemState extends State<_Item> {
  final LayerLink _layerLink = LayerLink();

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: () {
        show();
      },
      child: CompositedTransformTarget(
          link: _layerLink,
          child: Container(
            key: widget.itemKey,
            color: widget.index % 2 == 0 ? Colors.black : Colors.grey,
          )),
    );
  }

  void show() {
    OverlayState overlayState = Overlay.of(context);
    OverlayEntry overlayEntry;
    WidgetsBinding.instance.addPostFrameCallback((_) {
      overlayEntry = _createOverlay();
      overlayState.insert(overlayEntry);
    });
  }

  OverlayEntry _createOverlay() {
    RenderBox renderBox = context.findRenderObject() as RenderBox;

    var size = renderBox.size;
    return OverlayEntry(
        builder: (context) => Positioned(
              width: 200,
              child: CompositedTransformFollower(
                link: _layerLink,
                showWhenUnlinked: false,
                offset: Offset(0.0, size.height),
                child: Material(
                  elevation: 5.0,
                  child: Container(
                    color: Colors.cyan,
                    child: const TextField(
                      decoration: InputDecoration(hintText: 'Enter Something'),
                    ),
                  ),
                ),
              ),
            ));
  }
}
```

### Screenshots or Video

https://ibb.co/NjNYZd6


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel stable, 3.10.5, on macOS 13.2.1 22D68 darwin-arm64, locale en-US)
    ! Warning: `dart` on your path resolves to /usr/local/Cellar/dart/2.18.4/libexec/bin/dart, which is not inside your current Flutter SDK checkout at
      /Users/gurudharan/Downloads/flutter. Consider adding /Users/gurudharan/Downloads/flutter/bin to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.81.1)
[✓] Connected device (3 available)
[✓] Network resources

! Doctor found issues in 1 category.
```

</details>