Repository: flutter
Issue: CupertinoTextField Does Not Follow Primary Color for Text Selection During Autocorrect
Labels: a: text input,platform-ios,f: cupertino,has reproducible steps,P2,c: parity,team-text-input,triaged-text-input,found in release: 3.27,found in release: 3.28

### Steps to reproduce

1. Create a Flutter app with a `CupertinoTextField` and set a custom `primaryColor` in the `CupertinoThemeData`.
2. Type text into the `CupertinoTextField` and observe the behavior during autocorrect.
3. Compare it with the native iOS `TextField` behavior.

### Expected results

- The selection handles and marked text during autocorrect in `CupertinoTextField` should follow the `primaryColor` defined in `CupertinoThemeData`.
- This behavior should match the native iOS `TextField`, which dynamically applies the app's primary color.

### Actual results

- `CupertinoTextField` does not respect the `primaryColor` for selection handles or marked text while autocorrect or typing in. 
- On iOS, the native `TextField` dynamically uses the primary color, ensuring visual consistency.

### Code sample

<details open><summary>Code sample</summary>

```dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(CupertinoTestApp());
}

class CupertinoTestApp extends StatelessWidget {
  const CupertinoTestApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const CupertinoApp(
      theme: CupertinoThemeData(
        primaryColor: Colors.red, // Set the primary color to red
      ),
      home: MyScreen(),
    );
  }
}

class MyScreen extends StatelessWidget {
  const MyScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return CupertinoPageScaffold(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          CupertinoTextField(),
        ],
      ),
    );
  }
}
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>


| **Native iOS TextField**   | **Flutter CupertinoTextField** 
|----------------------|----------------------|
| ![iOS Behavior](https://github.com/user-attachments/assets/a66b5731-8faf-4e63-9698-4846a3013585) | ![Flutter Behavior](https://github.com/user-attachments/assets/8eef8baa-07a7-4ded-92c5-e6f1fa883bec) |

</details>

### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.1, on macOS 14.5 23F79 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.96.0)
[✓] Connected device (4 available)
[✓] Network resources

! Doctor found issues in 1 category.```

</details>