flutter / flutter/flutter

[version 3.24] ThemeData's hintColor not working in TextField, which was working in version 3.22.x

Open
#153,219 6 comments 0 reactions 0 assignees View on GitHub
a: text input c: regression found in release: 3.24 has reproducible steps p: material_ui P2 package team-text-input triaged-text-input
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

ThemeData(
hintColor: Colors.red,

### Expected results

TextField's hint text color is read, as in previous version

### Actual results

TextField's hint text color seems white

### Code sample

Code sample

```dart
[Paste your code here]
```

### Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

### Logs

Logs

```console
[Paste your logs here]
```

### Flutter Doctor output

Doctor output

```console
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.0, on Microsoft Windows [Version 10.0.22631.3880], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[√] Chrome - develop for the web
[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 2024.1)
[√] IntelliJ IDEA Community Edition (version 2024.2)
[√] VS Code, 64-bit edition (version 1.91.1)
[√] Connected device (4 available)
[√] Network resources
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with ThemeData(hintColor: Colors.red) and a TextField on Flutter 3.24, then compare the behavior with version 3.22.x. Done means the TextField hint text uses the configured hint color again; the payload names no source file or test to inspect.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.