MInputDecoration constructor

const MInputDecoration({
  1. Widget? icon,
  2. Color? iconColor,
  3. Widget? label,
  4. String? labelText,
  5. TextStyle? labelStyle,
  6. TextStyle? floatingLabelStyle,
  7. String? helperText,
  8. TextStyle? helperStyle,
  9. int? helperMaxLines,
  10. String? hintText,
  11. TextStyle? hintStyle,
  12. TextDirection? hintTextDirection,
  13. int? hintMaxLines,
  14. Duration? hintFadeDuration,
  15. Widget? error,
  16. String? errorText,
  17. TextStyle? errorStyle,
  18. int? errorMaxLines,
  19. FloatingLabelBehavior? floatingLabelBehavior,
  20. FloatingLabelAlignment? floatingLabelAlignment,
  21. bool? isCollapsed,
  22. bool? isDense,
  23. EdgeInsetsGeometry? contentPadding,
  24. Widget? prefixIcon,
  25. BoxConstraints? prefixIconConstraints,
  26. Widget? prefix,
  27. String? prefixText,
  28. TextStyle? prefixStyle,
  29. Color? prefixIconColor,
  30. Widget? suffixIcon,
  31. Widget? suffix,
  32. String? suffixText,
  33. TextStyle? suffixStyle,
  34. Color? suffixIconColor,
  35. BoxConstraints? suffixIconConstraints,
  36. Widget? counter,
  37. String? counterText,
  38. TextStyle? counterStyle,
  39. bool? filled,
  40. Color? fillColor,
  41. Color? focusColor,
  42. Color? hoverColor,
  43. InputBorder? errorBorder,
  44. InputBorder? focusedBorder,
  45. InputBorder? focusedErrorBorder,
  46. InputBorder? disabledBorder,
  47. InputBorder? enabledBorder,
  48. InputBorder? border,
  49. bool enabled = true,
  50. String? semanticCounterText,
  51. bool? alignLabelWithHint,
  52. BoxConstraints? constraints,
  53. BorderRadius? borderRadius,
  54. MInputBorderStyle borderStyle = MInputBorderStyle.underline,
  55. double? gapPadding,
  56. double? height,
  57. Color? hintColor,
  58. double? radius,
  59. BorderSide? side,
  60. EdgeInsetsGeometry? suffixPadding,
  61. EdgeInsetsGeometry? suffixIconPadding,
  62. String? text,
  63. double? width,
  64. bool uniformBorderStyles = false,
})

Implementation

const MInputDecoration({
  super.icon,
  super.iconColor,
  super.label,
  super.labelText,
  super.labelStyle,
  super.floatingLabelStyle,
  super.helperText,
  super.helperStyle,
  super.helperMaxLines,
  super.hintText,
  super.hintStyle,
  super.hintTextDirection,
  super.hintMaxLines,
  super.hintFadeDuration,
  super.error,
  super.errorText,
  super.errorStyle,
  super.errorMaxLines,
  super.floatingLabelBehavior,
  super.floatingLabelAlignment,
  super.isCollapsed,
  super.isDense,
  super.contentPadding,
  super.prefixIcon,
  super.prefixIconConstraints,
  super.prefix,
  super.prefixText,
  super.prefixStyle,
  super.prefixIconColor,
  super.suffixIcon,
  super.suffix,
  super.suffixText,
  super.suffixStyle,
  super.suffixIconColor,
  super.suffixIconConstraints,
  super.counter,
  super.counterText,
  super.counterStyle,
  super.filled,
  super.fillColor,
  super.focusColor,
  super.hoverColor,
  super.errorBorder,
  super.focusedBorder,
  super.focusedErrorBorder,
  super.disabledBorder,
  super.enabledBorder,
  super.border,
  super.enabled = true,
  super.semanticCounterText,
  super.alignLabelWithHint,
  super.constraints,
  this.borderRadius,
  this.borderStyle = MInputBorderStyle.underline,
  this.gapPadding,
  this.height,
  this.hintColor,
  this.radius,
  this.side,
  this.suffixPadding,
  this.suffixIconPadding,
  this.text,
  this.width,
  this.uniformBorderStyles = false,
});