Repository: flutter
Issue: NestedScrollView : SwitchListTile border overlaps
Labels: framework,f: material design,f: scrolling,d: api docs,has reproducible steps,P2,found in release: 3.10,found in release: 3.12,team-design,triaged-design

### 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

I have a set up with NestedScrollView and in it is a SwitchListTile with a border when I set the state for the border position doesn't update, but the content does

on mobile this happens as soon as you click the button in the example, but in web you have to first position your cursor on top of where the submit button will be right after you click run to see it

### Expected results

for the border to update its position

### Actual results

it doesn't update position instead it overlaps content

### Code sample

https://dartpad.dev/?id=107ebf6e90732df2040124820daa7eee

### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>
<img width="679" alt="Screenshot 1444-12-22 at 7 05 36 PM" src="https://github.com/flutter/flutter/assets/94823120/d6474024-7096-449b-ac2c-5c12541b6730">


![IMG_9F4C0B93D3E8-1](https://github.com/flutter/flutter/assets/94823120/294cefbe-4550-43d7-88ce-9675ec1eb616)



### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.10.5, on macOS 13.3 22E252 darwin-arm64, locale
    en-SA)
    • Flutter version 3.10.5 on channel stable at /Users/moneeroctedia/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (4 weeks ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/moneeroctedia/Library/Android/sdk
    • Platform android-33-ext5, build-tools 33.0.2
    • Java binary at: /opt/homebrew/opt/openjdk/bin/java
    • Java version OpenJDK Runtime Environment Homebrew (build 20)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.12.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1)
    • Android Studio at /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
    • Java version OpenJDK Runtime Environment (build
      11.0.15+0-b2043.56-8887301)

[✓] VS Code (version 1.78.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.68.0

[✓] VS Code (version 1.77.1)
    • VS Code at /Users/moneeroctedia/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.68.0

[✓] Connected device (3 available)
    • Moneer’s iPhone (mobile) • 33e67783c46f4b0f249148f1ac77b4b3118c7950 • ios            • iOS 16.5.1
      20F75
    • macOS (desktop)          • macos                                    • darwin-arm64   • macOS 13.3
      22E252 darwin-arm64
    • Chrome (web)             • chrome                                   • web-javascript • Google
      Chrome 114.0.5735.198

[✓] Network resources
    • All expected network resources are available.

• No issues found!

```

</details>