UFUInputBox constructor
const
UFUInputBox({
- String? label,
- TextEditingController? controller,
- TextInputType? keyboardType,
- bool readOnly = false,
- bool obscureText = false,
- int? maxLines = 1,
- int? maxLength,
- bool disabled = false,
- FocusNode? focusNode,
- bool autofocus = false,
- String? hintText,
- Color? hintFontColor,
- Widget? prefixChild,
- Widget? suffixChild,
- FormFieldValidator? validator,
- ValueChanged<
String> ? onChanged, - FormFieldSetter? onSaved,
- VoidCallback? onPressed,
- int? debounceTime,
- bool autoGrow = false,
- UFUInputBoxType type = UFUInputBoxType.withoutLabel,
- Color? fillColor,
- Color? labelBgColor,
- double cursorWidth = 1.5,
- double? cursorHeight,
- ScrollController? scrollController,
- EdgeInsets scrollPadding = const EdgeInsets.all(8.0),
- ScrollPhysics? scrollPhysics,
- bool enableSuggestions = false,
- List<
TextInputFormatter> ? inputFormatters, - Color? cancelButtonColor,
- double? cancelButtonSize,
- EdgeInsets? padding,
- EdgeInsets? errorTextPadding,
- UFUTextSize textSize = UFUTextSize.heading4,
- double? hintTextSize,
- FontWeight? fontWeight,
- FontWeight? hintFontWeight,
- UFUFontWeight? outsideLabelFontWeight = UFUFontWeight.bold,
- VoidCallback? onTapSuffix,
- Color? borderColor,
- bool isCounterText = false,
- UFUInputBoxController? inputBoxController,
- Widget chip(
- dynamic
- List? chipsList,
- Widget? moreChipsWidget,
- bool? isRequired = false,
- bool avoidPrefixConstraints = false,
- bool isExtWidget = false,
- UFUInputBoxController? extInputBoxController,
- BoxConstraints? prefixIconConstraints,
- bool? showCursor,
- Color? textColor,
- TextAlign? textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical = TextAlignVertical.top,
- TextCapitalization textCapitalization = TextCapitalization.sentences,
- double? borderRadius,
- TextInputAction? textInputAction,
- Key? key,
- dynamic onFieldSubmitted(
- String value
- TapRegionCallback? onTapOutside,
- 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});