SimpleInputDecoration constructor

const SimpleInputDecoration({
  1. Icon? icon,
  2. Widget? label,
  3. String? labelText,
  4. TextStyle? labelStyle,
  5. TextStyle? floatingLabelStyle,
  6. String? helperText,
  7. TextStyle? helperStyle,
  8. int? helperMaxLines,
  9. String? hintText,
  10. TextStyle? hintStyle,
  11. TextDirection? hintTextDirection,
  12. int? hintMaxLines,
  13. String? errorText,
  14. TextStyle? errorStyle,
  15. int? errorMaxLines,
  16. FloatingLabelBehavior? floatingLabelBehavior,
  17. bool isCollapsed = false,
  18. bool? isDense,
  19. EdgeInsetsGeometry? contentPadding,
  20. IconButton? prefixIcon,
  21. BoxConstraints? prefixIconConstraints,
  22. Widget? prefix,
  23. String? prefixText,
  24. TextStyle? prefixStyle,
  25. IconButton? suffixIcon,
  26. BoxConstraints? suffixIconConstraints,
  27. Widget? suffix,
  28. String? suffixText,
  29. TextStyle? suffixStyle,
  30. Widget? counter,
  31. String? counterText,
  32. TextStyle? counterStyle,
  33. bool filled = false,
  34. Color? fillColor,
  35. Color? focusColor,
  36. Color? hoverColor,
  37. Color? disabledColor,
  38. InputBorder? border,
  39. InputBorder? errorBorder,
  40. InputBorder? focusedBorder,
  41. InputBorder? focusedErrorBorder,
  42. InputBorder? enabledBorder,
  43. InputBorder? disabledBorder,
  44. String? semanticCounterText,
  45. bool? alignLabelWithHint,
  46. BoxConstraints? constraints,
  47. bool removeBorder = false,
  48. bool simpleBorder = false,
  49. Color? borderColor,
  50. Color? errorBorderColor,
  51. Color? focusedBorderColor,
  52. Color? focusedErrorBorderColor,
  53. double borderWidth = 1.0,
  54. double focusedBorderWidth = 2.0,
  55. 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);