buildDefaultInputDecoration method
Implementation
InputDecoration buildDefaultInputDecoration() {
if (widget.decoration == null) {
InputStyleFactory? factory;
if(widget.inline == InlineStyle.clearStyle){
factory = ClearStyleInput();
}
if(widget.inline == InlineStyle.normalStyle){
factory = NormalStyleInput();
}
factory ??= ClearStyleInput();
return factory.build(
this,
clearIcon:widget.clearIcon ,
enableClear: widget.enableClear,
fillColor: widget.fillColor,
filled: widget.filled,
border: widget.border,
allLineBorder: _buildBorder(widget.allLineBorder),
focusedBorder: _buildBorder(widget.focusedBorder),
enabledBorder:_buildBorder(widget.enabledBorder),
disabledBorder: _buildBorder(widget.disabledBorder),
focusedErrorBorder:_buildBorder(widget.focusedErrorBorder),
errorBorder:_buildBorder(widget.errorBorder),
isCollapsed: widget.isCollapsed,
contentPadding: widget.contentPadding,
icon: widget.icon,
iconColor: widget.iconColor,
label: widget.label,
labelText: widget.labelText,
labelStyle: widget.labelStyle,
floatingLabelStyle: widget.floatingLabelStyle,
helperText: widget.helperText,
helperStyle: widget.helperStyle,
helperMaxLines: widget.helperMaxLines,
hintText: widget.hintText,
hintStyle: widget.hintStyle,
hintTextDirection: widget.hintTextDirection,
hintMaxLines: widget.hintMaxLines,
errorText: widget.errorText,
errorStyle: widget.errorStyle,
errorMaxLines: widget.errorMaxLines,
floatingLabelBehavior: widget.floatingLabelBehavior,
floatingLabelAlignment: widget.floatingLabelAlignment,
prefixIcon: widget.prefixIcon,
prefixIconConstraints: widget.prefixIconConstraints,
prefix: widget.prefix,
prefixText: widget.prefixText,
prefixStyle: widget.prefixStyle,
prefixIconColor: widget.prefixIconColor,
suffixIcon: widget.suffixIcon,
suffix: widget.suffix,
suffixText: widget.suffixText,
suffixStyle: widget.suffixStyle,
suffixIconColor: widget.suffixIconColor,
suffixIconConstraints: widget.suffixIconConstraints,
counter: widget.counter,
counterText: widget.counterText,
counterStyle: widget.counterStyle,
focusColor: widget.focusColor,
hoverColor: widget.hoverColor,
semanticCounterText: widget.semanticCounterText,
alignLabelWithHint: widget.alignLabelWithHint,
constraints: widget.constraints,
);
}
return widget.decoration!;
}