Repository: flutter
Issue: DropdownButtonFormField in Wrap inside of SliverFillRemaining with hasScrollBody=false breaks rendering
Labels: c: crash,framework,f: material design,a: error message,has reproducible steps,P2,team-framework,triaged-framework,found in release: 3.24,found in release: 3.26

### Steps to reproduce

Having a DropdownButtonFormField in a Wrap inside of SliverFillRemaining with hasScrollBody=false breaks the rendering immediately.

The gist contains the smallest possible reproduction I could build.
My goal is to have a pinned SliverAppBar above the SliverFillRemaining, where the page does not scroll, when the body inside SliverFillRemaining is not bigger than the remaining space.

### Expected results

Everything should render normally.

### Actual results

Doesn't render, instead the following exception is thrown.

<details open><summary>Exception thrown when trying to render the code</summary>

```
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during performLayout():
The RenderPositionedBox class does not implement "computeDryBaseline".
If you are not writing your own RenderBox subclass, then this is not
your fault. Contact support: https://github.com/flutter/flutter/issues/new?template=2_bug.yml

Widget creation tracking is currently disabled. Enabling it enables improved error messages. It can
be enabled by passing `--track-widget-creation` to `flutter run` or `flutter test`.

When the exception was thrown, this was the stack

The following RenderObject was being processed when the exception was fired: RenderSliverFillRemaining#9b775 relayoutBoundary=up1 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
  creator: _SliverFillRemainingWithoutScrollable ← SliverFillRemaining ← Viewport ←
    IgnorePointer-[GlobalKey#abbe1] ← Semantics ← Listener ← _GestureSemantics ←
    RawGestureDetector-[LabeledGlobalKey<RawGestureDetectorState>#d9d01] ← Listener ← _ScrollableScope
    ← _ScrollSemantics-[GlobalKey#573b2] ← NotificationListener<ScrollMetricsNotification> ← ⋯
  parentData: paintOffset=Offset(0.0, 0.0) (can use size)
  constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.idle,
    scrollOffset: 0.0, precedingScrollExtent: 0.0, remainingPaintExtent: 859.0, crossAxisExtent:
    852.0, crossAxisDirection: AxisDirection.right, viewportMainAxisExtent: 859.0,
    remainingCacheExtent: 1109.0, cacheOrigin: 0.0)
  geometry: null
This RenderObject had the following descendants (showing up to depth 5):
    child: RenderWrap#b2322 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
      child 1: RenderParagraph#433a5 NEEDS-LAYOUT NEEDS-PAINT
        text: TextSpan
      child 2: RenderSemanticsAnnotations#d210e NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        child: RenderSemanticsAnnotations#a34b8 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
          child: RenderSemanticsAnnotations#32f0c NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            child: RenderMouseRegion#8c9f8 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
════════════════════════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Invalid argument: null
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.
Another exception was thrown: Unexpected null value.

```


</details>

### Code sample

https://dartpad.dev/?id=b4251bc47c20c29443c240203a6ec8e0

### Screenshots or Video

_No response_

### Logs

_No response_

### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.24.3, on EndeavourOS 6.10.9-zen1-2-zen, locale de_DE.UTF-8)
    • Flutter version 3.24.3 on channel stable at /opt/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (vor 2 Tagen), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /home/dev/Android/Sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /home/dev/.local/share/JetBrains/Toolbox/apps/android-studio/jbr/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Android Studio (version 2024.1)
    • Android Studio at /home/dev/.local/share/JetBrains/Toolbox/apps/android-studio
    • Flutter plugin version 81.0.2
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] Connected device (2 available)
    • HD1911 (mobile)              • 91e815a8      • android-arm64 • Android 14 (API 34)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64   • Android 14 (API 34) (emulator)

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>