InputDecoration.collapsed constructor

const InputDecoration.collapsed({
  1. required String? hintText,
  2. FloatingLabelBehavior? floatingLabelBehavior,
  3. FloatingLabelAlignment? floatingLabelAlignment,
  4. TextStyle? hintStyle,
  5. TextDirection? hintTextDirection,
  6. bool? filled = false,
  7. Color? fillColor,
  8. Color? focusColor,
  9. Color? hoverColor,
  10. InputBorder? border = InputBorder.none,
  11. bool enabled = true,
})

Defines an InputDecorator that is the same size as the input field.

This type of input decoration does not include a border by default.

Sets the isCollapsed property to true.

Implementation

const InputDecoration.collapsed({
  required this.hintText,
  this.floatingLabelBehavior,
  this.floatingLabelAlignment,
  this.hintStyle,
  this.hintTextDirection,
  this.filled = false,
  this.fillColor,
  this.focusColor,
  this.hoverColor,
  this.border = InputBorder.none,
  this.enabled = true,
}) : icon = null,
     iconColor = null,
     label = null,
     labelText = null,
     labelStyle = null,
     floatingLabelStyle = null,
     helper = null,
     helperText = null,
     helperStyle = null,
     helperMaxLines = null,
     hintMaxLines = null,
     hintFadeDuration = null,
     error = null,
     errorText = null,
     errorStyle = null,
     errorMaxLines = null,
     isDense = false,
     contentPadding = EdgeInsets.zero,
     isCollapsed = true,
     prefixIcon = null,
     prefix = null,
     prefixText = null,
     prefixStyle = null,
     prefixIconColor = null,
     prefixIconConstraints = null,
     suffix = null,
     suffixIcon = null,
     suffixText = null,
     suffixStyle = null,
     suffixIconColor = null,
     suffixIconConstraints = null,
     counter = null,
     counterText = null,
     counterStyle = null,
     errorBorder = null,
     focusedBorder = null,
     focusedErrorBorder = null,
     disabledBorder = null,
     enabledBorder = null,
     semanticCounterText = null,
     alignLabelWithHint = false,
     constraints = null;