inputDecoratorUnfocusedHasBorder property

bool inputDecoratorUnfocusedHasBorder
final

Determines if the InputDecorator unfocused state has a border.

Defaults to true.

Applies to both outline and underline mode.

You can use this in a design where you use a fill color and want unfocused input fields to only be highlighted by the fill color and not have any unfocused input border style.

When set to false, there is no border bored on states enabledBorder and disabledBorder. Unless inputDecoratorFocusedHasBorder is set to false, there is a border on focusedBorder, focusedErrorBorder and errorBorder. Unfocused error state thus has a border also when it is not focused, even when this is set to false. This is a design choice to continue to emphasize error state with an error border even when this property is set to false. If you want all focused states to not have a border also set inputDecoratorFocusedHasBorder to false.

Implementation

final bool inputDecoratorUnfocusedHasBorder;