Repository: flutter
Issue: WidgetsBinding.instance.platformDispatcher.displays.first.size returns Size(0.0, 0.0) zero on Windows
Labels: framework,platform-windows,has reproducible steps,P3,team-windows,triaged-windows,found in release: 3.27,found in release: 3.28

### Steps to reproduce

Open a new Flutter project (default increment counter example)

Add the following code:
```
      Size _screenSize = WidgetsBinding.instance.platformDispatcher.displays.first.size;
      print("display: ${_screenSize}");
```

Run the project on Windows 11.
Only one monitor is connected to the device, with a resolution of 3440x1440 pixel and a refresh rate of 100Hz.

### Expected results

`display: Size(3440.0, 1440.0)`
Output on Chrome

### Actual results

`display: Size(0.0, 0.0)`
Output on Windows 11
Version 10.0.22631 Build 22631


### Code sample

```
  void _incrementCounter() {
    setState(() {
      _counter++;

      Size _screenSize = WidgetsBinding.instance.platformDispatcher.displays.first.size;
      print("display: ${_screenSize}");
    });
  }
```

### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

Additional logs printed by:
```
      Size _screenSize = WidgetsBinding.instance.platformDispatcher.displays.first.size;
      print("display: ${_screenSize}");
      print("display: ${WidgetsBinding.instance.platformDispatcher.displays}");
      print("display: ${WidgetsBinding.instance.platformDispatcher.displays.first}");
```

```
flutter: display: Size(0.0, 0.0)
flutter: display: (Display(id: 0, size: Size(0.0, 0.0), devicePixelRatio: 0.0, refreshRate: 99.9750062484379))
flutter: display: Display(id: 0, size: Size(0.0, 0.0), devicePixelRatio: 0.0, refreshRate: 99.9750062484379)
```

actual refresh rate of the monitor is 100Hz

### Flutter Doctor output

```
> flutter doctor -v
[√] Flutter (Channel stable, 3.22.3, on Microsoft Windows [Version 10.0.22631.4602], locale en-DE)
    • Flutter version 3.22.3 on channel stable at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0850beeb2 (5 months ago), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at C:\Users\user\AppData\Local\Android\sdk
    • Platform android-33-ext5, build-tools 33.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.0)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.9.34607.119
    • Windows 10 SDK version 10.0.22000.0

[√] Android Studio (version 2022.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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-9505619)

[√] IntelliJ IDEA Community Edition (version 2022.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.1
    • 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.95.3)
    • VS Code at C:\Users\user\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.102.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.4602]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 124.0.6367.207
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 131.0.2903.99

[√] Network resources
    • All expected network resources are available.

• No issues found!
```