UFUInputBox constructor

const UFUInputBox({
  1. String? label,
  2. TextEditingController? controller,
  3. TextInputType? keyboardType,
  4. bool readOnly = false,
  5. bool obscureText = false,
  6. int? maxLines = 1,
  7. int? maxLength,
  8. bool disabled = false,
  9. FocusNode? focusNode,
  10. bool autofocus = false,
  11. String? hintText,
  12. Color? hintFontColor,
  13. Widget? prefixChild,
  14. Widget? suffixChild,
  15. FormFieldValidator? validator,
  16. ValueChanged<String>? onChanged,
  17. FormFieldSetter? onSaved,
  18. VoidCallback? onPressed,
  19. int? debounceTime,
  20. bool autoGrow = false,
  21. UFUInputBoxType type = UFUInputBoxType.withoutLabel,
  22. Color? fillColor,
  23. Color? labelBgColor,
  24. double cursorWidth = 1.5,
  25. double? cursorHeight,
  26. ScrollController? scrollController,
  27. EdgeInsets scrollPadding = const EdgeInsets.all(8.0),
  28. ScrollPhysics? scrollPhysics,
  29. bool enableSuggestions = false,
  30. List<TextInputFormatter>? inputFormatters,
  31. Color? cancelButtonColor,
  32. double? cancelButtonSize,
  33. EdgeInsets? padding,
  34. EdgeInsets? errorTextPadding,
  35. UFUTextSize textSize = UFUTextSize.heading4,
  36. double? hintTextSize,
  37. FontWeight? fontWeight,
  38. FontWeight? hintFontWeight,
  39. UFUFontWeight? outsideLabelFontWeight = UFUFontWeight.bold,
  40. VoidCallback? onTapSuffix,
  41. Color? borderColor,
  42. bool isCounterText = false,
  43. UFUInputBoxController? inputBoxController,
  44. Widget chip(
    1. dynamic
    )?,
  45. List? chipsList,
  46. Widget? moreChipsWidget,
  47. bool? isRequired = false,
  48. bool avoidPrefixConstraints = false,
  49. bool isExtWidget = false,
  50. UFUInputBoxController? extInputBoxController,
  51. BoxConstraints? prefixIconConstraints,
  52. bool? showCursor,
  53. Color? textColor,
  54. TextAlign? textAlign = TextAlign.start,
  55. TextAlignVertical? textAlignVertical = TextAlignVertical.top,
  56. TextCapitalization textCapitalization = TextCapitalization.sentences,
  57. double? borderRadius,
  58. TextInputAction? textInputAction,
  59. Key? key,
  60. dynamic onFieldSubmitted(
    1. String value
    )?,
  61. TapRegionCallback? onTapOutside,
  62. TapRegionUpCallback? onTapUpOutside,
})

Implementation

const UFUInputBox({
  this.label,
  this.controller,
  this.keyboardType,
  this.readOnly = false,
  this.obscureText = false,
  this.maxLines = 1,
  this.maxLength,
  this.disabled = false,
  this.focusNode,
  this.autofocus = false,
  this.hintText,
  this.hintFontColor,
  this.prefixChild,
  this.suffixChild,
  this.validator,
  this.onChanged,
  this.onSaved,
  this.onPressed,
  this.debounceTime,
  this.autoGrow = false,
  this.type = UFUInputBoxType.withoutLabel,
  this.fillColor,
  this.labelBgColor,
  this.cursorWidth = 1.5,
  this.cursorHeight,
  this.scrollController,
  this.scrollPadding = const EdgeInsets.all(8.0),
  this.scrollPhysics,
  this.enableSuggestions = false,
  this.inputFormatters,
  this.cancelButtonColor,
  this.cancelButtonSize,
  this.padding,
  this.errorTextPadding,
  this.textSize = UFUTextSize.heading4,
  this.hintTextSize,
  this.fontWeight,
  this.hintFontWeight,
  this.outsideLabelFontWeight = UFUFontWeight.bold,
  this.onTapSuffix,
  this.borderColor,
  this.isCounterText = false,
  this.inputBoxController,
  this.chip,
  this.chipsList,
  this.moreChipsWidget,
  this.isRequired = false,
  this.avoidPrefixConstraints = false,
  this.isExtWidget = false,
  this.extInputBoxController,
  this.prefixIconConstraints,
  this.showCursor,
  this.textColor,
  this.textAlign = TextAlign.start,
  this.textAlignVertical = TextAlignVertical.top,
  this.textCapitalization = TextCapitalization.sentences,
  this.borderRadius,
  this.textInputAction,
  super.key,
  this.onFieldSubmitted,
  this.onTapOutside,
  this.onTapUpOutside,
});