enabledBorder property
The border to display when the InputDecorator is enabled and is not showing an error.
See also:
- InputDecoration.enabled, which is false if the InputDecorator is disabled.
- InputDecoration.errorText, the error shown by the InputDecorator, if non-null.
- border, for a description of where the InputDecorator border appears.
- UnderlineInputBorder, an InputDecorator border which draws a horizontal line at the bottom of the input decorator's container.
- OutlineInputBorder, an InputDecorator border which draws a rounded rectangle around the input decorator's container.
- InputBorder.none, which doesn't draw a border.
- errorBorder, displayed when InputDecorator.isFocused is false and InputDecoration.errorText is non-null.
- focusedBorder, displayed when InputDecorator.isFocused is true and InputDecoration.errorText is null.
- focusedErrorBorder, displayed when InputDecorator.isFocused is true and InputDecoration.errorText is non-null.
- disabledBorder, displayed when InputDecoration.enabled is false and InputDecoration.errorText is null.
Implementation
@override
InputBorder get enabledBorder => OutlineInputBorder(
borderSide: BorderSide(
color: editingBorderColor ?? Theme.of(context).primaryColor,
width: borderWidth ?? 0,
),
borderRadius: getradius(shape),
);