Repository: flutter
Issue: [cupertino] Text color does not respect CupertinoThemeData
Labels: framework,f: cupertino,has reproducible steps,P2,team-design,triaged-design,found in release: 3.13,found in release: 3.17

### 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

Use `CupertinoTheme(data: CupertinoThemeData(brightness: Brightness.dark), child: child)` to force dark mode.

### Expected results

Text created with the `Text` widget should be white.

Note that converting the example below into a `MaterialApp` produces the expected result ([link to DartPad](https://dartpad.dev/?id=cebcc9b724fa845cce296ce776b41e7f)).

### Actual results

Cupertino components adapt to dark mode, but text created with the `Text` widget follows the system light/dark mode. If the system is in light mode the text will be black on black background (see the example below).

### Code sample

DartPad link: https://dartpad.dev/?id=e0228a41b0212ebf6fe86c6f3cd94346

Observe that the text "Hello world!" is invisible when the system is in light mode.

```dart
class TestApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return const CupertinoApp(
        home: CupertinoTheme(
            data: CupertinoThemeData(brightness: Brightness.dark),
            child: CupertinoPageScaffold(
              navigationBar: CupertinoNavigationBar(middle: Text("Test")),
              child: Center(child: Text('Hello world!')),
            )));
  }
}
```

### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.13.8, on Arch Linux 6.5.9-arch2-1,
    locale en_US.UTF-8)
    • Flutter version 3.13.8 on channel stable at
      /home/simon/projects/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 6c4930c4ac (4 weeks ago), 2023-10-18
      10:57:55 -0500
    • Engine revision 767d8c75e8
    • Dart version 3.1.4
    • DevTools version 2.25.0

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from:
      https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android
      SDK components.
      (or visit
      https://flutter.dev/docs/get-started/install/linux#android-se
      tup for detailed instructions).
      If the Android SDK has been installed to a custom location,
      please use
      `flutter config --android-sdk` to update to that location.


[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = chromium

[✓] Linux toolchain - develop for Linux desktop
    • clang version 16.0.6
    • cmake version 3.27.7
    • ninja version 1.11.1
    • pkg-config version 1.8.1

[!] Android Studio (not installed)
    • Android Studio not found; download from
      https://developer.android.com/studio/index.html
      (or visit
      https://flutter.dev/docs/get-started/install/linux#android-se
      tup for detailed instructions).

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Arch Linux
      6.5.9-arch2-1
    • Chrome (web)    • chrome • web-javascript • Chromium
      119.0.6045.123 Arch Linux

[✓] Network resources
    • All expected network resources are available.
```

</details>