isFocused property

bool isFocused

Whether the input field has focus.

Determines the position of the label text and the color and weight of the border, as well as the container fill color, which is a blend of InputDecoration.focusColor with InputDecoration.fillColor when focused, and InputDecoration.fillColor when not.

Defaults to false.

See also:


final bool isFocused