CustomInputDecoration constructor

CustomInputDecoration({
  1. String? hintText,
  2. String? labelText,
  3. int? hintMaxLines,
  4. String? prefixText,
  5. String? suffixText,
  6. IconData prefixIcon = Icons.edit_rounded,
  7. bool showPrefixIcon = true,
  8. Widget? prefixIconWidget,
  9. Widget? icon,
  10. Widget? suffixIcon,
  11. Color? iconColor,
  12. Widget? label,
  13. TextStyle? labelStyle,
  14. TextStyle? floatingLabelStyle,
  15. String? helperText,
  16. TextStyle? helperStyle,
  17. int? helperMaxLines,
  18. TextStyle? hintStyle,
  19. TextDirection? hintTextDirection,
  20. String? errorText,
  21. TextStyle? errorStyle,
  22. int? errorMaxLines,
  23. FloatingLabelBehavior? floatingLabelBehavior,
  24. FloatingLabelAlignment? floatingLabelAlignment,
  25. bool isCollapsed = false,
  26. bool isCounter = true,
  27. bool? isDense,
  28. EdgeInsetsGeometry? contentPadding,
  29. Widget? prefix,
  30. BoxConstraints? prefixIconConstraints,
  31. TextStyle? prefixStyle,
  32. Color? prefixIconColor,
  33. Widget? suffix,
  34. TextStyle? suffixStyle,
  35. Color? suffixIconColor,
  36. BoxConstraints? suffixIconConstraints,
  37. Widget? counter,
  38. String? counterText,
  39. TextStyle? counterStyle,
  40. bool? filled,
  41. Color? fillColor,
  42. Color? focusColor,
  43. Color? hoverColor,
  44. InputBorder? errorBorder,
  45. InputBorder? focusedBorder,
  46. InputBorder? focusedErrorBorder,
  47. InputBorder? disabledBorder,
  48. InputBorder? enabledBorder,
  49. InputBorder? border,
  50. bool enabled = true,
  51. String? semanticCounterText,
  52. bool? alignLabelWithHint,
  53. BoxConstraints? constraints,
})

Implementation

CustomInputDecoration({
  String? hintText,
  String? labelText,
  int? hintMaxLines,
  String? prefixText,
  String? suffixText,
  IconData prefixIcon = Icons.edit_rounded,
  bool showPrefixIcon = true,
  Widget? prefixIconWidget,
  Widget? icon,
  Widget? suffixIcon,
  Color? iconColor,
  Widget? label,
  TextStyle? labelStyle,
  TextStyle? floatingLabelStyle,
  String? helperText,
  TextStyle? helperStyle,
  int? helperMaxLines,
  TextStyle? hintStyle,
  TextDirection? hintTextDirection,
  String? errorText,
  TextStyle? errorStyle,
  int? errorMaxLines,
  FloatingLabelBehavior? floatingLabelBehavior,
  FloatingLabelAlignment? floatingLabelAlignment,
  bool isCollapsed = false,
  bool isCounter = true,
  bool? isDense,
  EdgeInsetsGeometry? contentPadding,
  Widget? prefix,
  BoxConstraints? prefixIconConstraints,
  TextStyle? prefixStyle,
  Color? prefixIconColor,
  Widget? suffix,
  TextStyle? suffixStyle,
  Color? suffixIconColor,
  BoxConstraints? suffixIconConstraints,
  Widget? counter,
  String? counterText,
  TextStyle? counterStyle,
  bool? filled,
  Color? fillColor,
  Color? focusColor,
  Color? hoverColor,
  InputBorder? errorBorder,
  InputBorder? focusedBorder,
  InputBorder? focusedErrorBorder,
  InputBorder? disabledBorder,
  InputBorder? enabledBorder,
  InputBorder? border,
  bool enabled = true,
  String? semanticCounterText,
  bool? alignLabelWithHint,
  BoxConstraints? constraints,
}) : super(
        hintText: hintText,
        labelText: labelText,
        prefixText: prefixText,
        suffixText: suffixText,
        counter: isCounter ? const SizedBox(height: 8) : counter,
        prefixIcon: showPrefixIcon ? Icon(prefixIcon) : prefixIconWidget,
        icon: icon,
        suffixIcon: suffixIcon,
        border: border ??
            OutlineInputBorder(
              borderSide: const BorderSide(),
              borderRadius: BorderRadius.circular(18),
            ),
        hintMaxLines: hintMaxLines,
        errorMaxLines: errorMaxLines,
        errorBorder: errorBorder,
        enabled: enabled,
        disabledBorder: disabledBorder,
        counterText: counterText,
        counterStyle: counterStyle,
        contentPadding: contentPadding,
        constraints: constraints,
        alignLabelWithHint: alignLabelWithHint,
        enabledBorder: enabledBorder,
        errorStyle: errorStyle,
        errorText: errorText,
        floatingLabelBehavior: floatingLabelBehavior,
        fillColor: fillColor,
        filled: filled,
        floatingLabelAlignment: floatingLabelAlignment,
        floatingLabelStyle: floatingLabelStyle,
        focusColor: focusColor,
        focusedBorder: focusedBorder,
        focusedErrorBorder: focusedErrorBorder,
        helperMaxLines: helperMaxLines,
        helperStyle: helperStyle,
        helperText: helperText,
        hintStyle: hintStyle,
        hintTextDirection: hintTextDirection,
        hoverColor: hoverColor,
        iconColor: iconColor,
        isCollapsed: isCollapsed,
        isDense: isDense,
        label: label,
        labelStyle: labelStyle,
        prefix: prefix,
        prefixIconColor: prefixIconColor,
        prefixIconConstraints: prefixIconConstraints,
        prefixStyle: prefixStyle,
        semanticCounterText: semanticCounterText,
        suffix: suffix,
        suffixIconColor: suffixIconColor,
        suffixIconConstraints: suffixIconConstraints,
        suffixStyle: suffixStyle,
      );