Repository: flutter
Issue: Collapsing the software keyboard doesn't lose the focus from textfield in 3.22.0, while it worked in 3.19.6
Labels: a: text input,c: regression,framework,f: focus,has reproducible steps,P3,team-text-input,triaged-text-input,found in release: 3.22

### Steps to reproduce

This issue does not exist in Flutter 3.19.3, it only occurs in Flutter 3.22.0 

1. focus TextField
2. Collapse the keyboard
3. FocusScope.of(context).requestFocus(smsInput);

This issue does not exist in Flutter 3.19.3, it only occurs in Flutter 3.22.0

### Expected results

TextField refocus

### Actual results

refocus not work
```
FocusScope.of(context).requestFocus(smsInput); /// not work
```

### Code sample

<details open><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

class TextFieldFocusDemo extends StatefulWidget {
  const TextFieldFocusDemo({super.key});

  @override
  State<TextFieldFocusDemo> createState() => _TextFieldFocusDemoState();
}

class _TextFieldFocusDemoState extends State<TextFieldFocusDemo> {
  late FocusNode smsInput;
  @override
  void initState() {
    smsInput = FocusNode();
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: TextField(
          focusNode: smsInput,
        ),
      ),
      floatingActionButton: FloatingActionButton(
        child: const Icon(Icons.add),
        onPressed: () {
          FocusScope.of(context).requestFocus(smsInput);

        },
      ),
    );
  }
  @override
  void dispose() {
    smsInput.dispose();
    super.dispose();
  }
}

```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[√] Flutter (Channel stable, 3.22.0, on Microsoft Windows [版本 10.0.19044.1586], locale zh-CN)
    • Flutter version 3.22.0 on channel stable at D:\env\flutter\flutter-3.22.0
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5dcb86f68f (8 days ago), 2024-05-09 07:39:20 -0500
    • Engine revision f6344b75dc
    • Dart version 3.4.0
    • DevTools version 2.34.3
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\Administrator\AppData\Local\Android\Sdk
    • Platform android-VanillaIceCream, build-tools 34.0.0
    • ANDROID_HOME = C:\Users\Administrator\AppData\Local\Android\Sdk
    • Java binary at: D:\AndroidStudio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop Windows apps
    X Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2023.2)
    • Android Studio at D:\AndroidStudio
    • 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
    • android-studio-dir = D:\AndroidStudio
    • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)

[√] VS Code (version 1.87.2)
    • VS Code at C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 14 (API 34) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [版本 10.0.19044.1586]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 124.0.6367.158
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 124.0.2478.105

[√] Network resources
    • All expected network resources are available.
```

</details>