Repository: flutter
Issue: TextDecoration doesn't inherit text color in Material3
Labels: framework,f: material design,a: typography,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

1. Create a new Flutter app and set `useMaterial3` to `true`
2. Create a text widget with a specified color, with the underline text decoration
3. Switch to dark mode


### Expected results

Like in Material 2, underline inherits the color of the text itself instead of defaulting to black (light theme) or white (dark theme)

### Actual results

1. Underline remains black/white  irrespective of text color instead of inheriting it, like in Material 2

### Code sample

<details><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() => runApp(const SelectionContainerDisabledExampleApp());

class SelectionContainerDisabledExampleApp extends StatelessWidget {
  const SelectionContainerDisabledExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Underline Bugs',
      theme: ThemeData(colorSchemeSeed: Colors.indigo, brightness: Brightness.light, useMaterial3: true),
      darkTheme: ThemeData(colorSchemeSeed: Colors.indigo, brightness: Brightness.dark, useMaterial3: true),
      themeMode: ThemeMode.system,
      home: Scaffold(
        appBar: AppBar(title: const Text('Sample')),
        body: const Center(
          child: SelectionArea(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                Text('Hello world', style: TextStyle(color: Colors.blue, decoration: TextDecoration.underline)),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
```
</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

### Material 2
| light | dark |
| -- | -- |
| <img src="https://github.com/flutter/flutter/assets/20235646/a0771270-2910-4fc1-9fca-f9d09a1d7906" /> | <img src="https://github.com/flutter/flutter/assets/20235646/fd9b55f7-4066-428f-8fb7-8dc9c4b9ca14" /> |


### Material 3
| light | dark |
| -- | -- |
| <img src="https://github.com/flutter/flutter/assets/20235646/721ac439-ffd0-42d0-bcef-81859e578228" /> | <img src="https://github.com/flutter/flutter/assets/20235646/c0886a3d-3c4a-426a-b673-f7802a542d10" /> |

</details>


### 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.4, on Arch Linux 6.3.9-arch1-1, locale en_US.UTF-8)
    • Flutter version 3.10.4 on channel stable at /media/sdcard/projects/android-development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 682aa387cf (3 weeks ago), 2023-06-05 18:04:56 -0500
    • Engine revision 2a3401c9bb
    • Dart version 3.0.3
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /media/sdcard/projects/android-development/android-sdk
    • Platform android-33, build-tools 34.0.0
    • Java binary at: /media/sdcard/projects/android-development/android-studio/jbr/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • clang version 15.0.7
    • cmake version 3.26.4
    • ninja version 1.11.1
    • pkg-config version 1.8.1

[✓] Android Studio (version 2022.2)
    • Android Studio at /media/sdcard/projects/android-development/android-studio
    • Flutter plugin version 74.0.2
    • Dart plugin version 222.4582
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Arch Linux 6.3.9-arch1-1

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.
```

</details>

Originally reported in #91605.