Closed
Description
Hi all,
When having a custom theme with a custom InputDecorationTheme, like
new ThemeData(
//...
inputDecorationTheme: const InputDecorationTheme(
focusedBorder: UnderlineInputBorder(borderSide: BorderSide(color: Colors.red)),
enabledBorder: UnderlineInputBorder(borderSide: BorderSide(color: Colors.yellow)),
labelStyle: TextStyle(color: Colors.yellow),
hintStyle: TextStyle(color: Colors.red),
));
my expectation, according to the documentation of the hintStyle property, is that the label text of a focused text field gets the color of the hint style. Unfortunately it stays the color of the labelStyle. When no custom InputDecorationTheme is in use it works.
With custom theme (expectation: in the focused case the text 'Place' should be red):
Without custom theme (where primary color is cyan and accent color is purple):
Is the configuration wrong or is it really a bug?
Regards,
Florian
Metadata
Metadata
Assignees
Labels
Important issues not at the top of the work listA truly polished experienceEntering text in a text field or keyboard related problemsflutter/packages/flutter/material repository.Found to occur in 1.22Found to occur in 1.26flutter/packages/flutter repository. See also f: labels.The issue has been confirmed reproducible and is ready to work onIssue is closed as already fixed in a newer version