SimpleInputDecoration constructor
const
SimpleInputDecoration({
- Icon? icon,
- Widget? label,
- String? labelText,
- TextStyle? labelStyle,
- TextStyle? floatingLabelStyle,
- String? helperText,
- TextStyle? helperStyle,
- int? helperMaxLines,
- String? hintText,
- TextStyle? hintStyle,
- TextDirection? hintTextDirection,
- int? hintMaxLines,
- String? errorText,
- TextStyle? errorStyle,
- int? errorMaxLines,
- FloatingLabelBehavior? floatingLabelBehavior,
- bool isCollapsed = false,
- bool? isDense,
- EdgeInsetsGeometry? contentPadding,
- IconButton? prefixIcon,
- BoxConstraints? prefixIconConstraints,
- Widget? prefix,
- String? prefixText,
- TextStyle? prefixStyle,
- IconButton? suffixIcon,
- BoxConstraints? suffixIconConstraints,
- Widget? suffix,
- String? suffixText,
- TextStyle? suffixStyle,
- Widget? counter,
- String? counterText,
- TextStyle? counterStyle,
- bool filled = false,
- Color? fillColor,
- Color? focusColor,
- Color? hoverColor,
- Color? disabledColor,
- InputBorder? border,
- InputBorder? errorBorder,
- InputBorder? focusedBorder,
- InputBorder? focusedErrorBorder,
- InputBorder? enabledBorder,
- InputBorder? disabledBorder,
- String? semanticCounterText,
- bool? alignLabelWithHint,
- BoxConstraints? constraints,
- bool removeBorder = false,
- bool simpleBorder = false,
- Color? borderColor,
- Color? errorBorderColor,
- Color? focusedBorderColor,
- Color? focusedErrorBorderColor,
- double borderWidth = 1.0,
- double focusedBorderWidth = 2.0,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(2.0)),
Implementation
const SimpleInputDecoration({
this.icon,
this.label,
this.labelText,
this.labelStyle,
this.floatingLabelStyle,
this.helperText,
this.helperStyle,
this.helperMaxLines,
this.hintText,
this.hintStyle,
this.hintTextDirection,
this.hintMaxLines,
this.errorText,
this.errorStyle,
this.errorMaxLines,
// this.hasFloatingPlaceholder = true,
this.floatingLabelBehavior,
this.isCollapsed = false,
this.isDense,
this.contentPadding,
this.prefixIcon,
this.prefixIconConstraints,
this.prefix,
this.prefixText,
this.prefixStyle,
this.suffixIcon,
this.suffixIconConstraints,
this.suffix,
this.suffixText,
this.suffixStyle,
this.counter,
this.counterText,
this.counterStyle,
this.filled = false,
this.fillColor,
this.focusColor,
this.hoverColor,
this.disabledColor,
this.border,
this.errorBorder,
this.focusedBorder,
this.focusedErrorBorder,
this.enabledBorder,
this.disabledBorder,
this.semanticCounterText,
this.alignLabelWithHint,
this.constraints,
this.removeBorder = false,
this.simpleBorder = false,
this.borderColor,
this.errorBorderColor,
this.focusedBorderColor,
this.focusedErrorBorderColor,
this.borderWidth = 1.0,
this.focusedBorderWidth = 2.0,
this.borderRadius = const BorderRadius.all(Radius.circular(2.0)),
}) : assert(borderWidth >= 0.0),
assert(focusedBorderWidth >= 0.0);