hintStyle property

TextStyle? hintStyle
final

The style to use for the InputDecoration.hintText.

If hintStyle is a WidgetStateTextStyle, then the effective text style can depend on the WidgetState.focused state, i.e. if the TextField is focused or not.

Also used for the InputDecoration.labelText when the InputDecoration.labelText is displayed on top of the input field (i.e., at the same location on the screen where text may be entered in the input field).

If null, defaults to a value derived from the base TextStyle for the input field and the current Theme.

Implementation

final TextStyle? hintStyle;