KInput constructor
const
KInput({
- Key? key,
- bool? error = false,
- TextEditingController? controller,
- FocusNode? focusNode,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextAlign textAlign = TextAlign.start,
- bool autofocus = false,
- String obscuringCharacter = '•',
- bool obscureText = false,
- bool autocorrect = true,
- bool enableSuggestions = true,
- bool expands = false,
- bool readOnly = false,
- int? maxLength,
- void onChanged()?,
- void onEditingComplete()?,
- void onSubmitted()?,
- void onAppPrivateCommand()?,
- List<
TextInputFormatter> ? inputFormatters, - Brightness? keyboardAppearance,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- void onTap()?,
- void onTapOutside()?,
- ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- String? restorationId,
- ControlSize size = ControlSize.regular,
- String? placeholder,
- dynamic onDebounce()?,
- Duration debounceDuration = const Duration(milliseconds: 300),
- Widget? prepend,
- Widget? prefix,
- Widget? prefixIcon,
- String? prefixText,
- String? prefixPlaceholder,
- String? suffixPlaceholder,
- String? suffixText,
- Widget? suffixIcon,
- Widget? suffix,
- Widget? append,
- bool clearable = false,
- bool togglePassword = false,
- bool? success,
- bool? warning,
- bool? disabled,
- bool filled = false,
- Color? filledColor,
Implementation
const KInput({
Key? key,
this.error = false,
this.controller,
this.focusNode,
this.keyboardType,
this.textInputAction,
this.textCapitalization = TextCapitalization.none,
this.textAlign = TextAlign.start,
this.autofocus = false,
this.obscuringCharacter = '•',
this.obscureText = false,
this.autocorrect = true,
this.enableSuggestions = true,
this.expands = false,
this.readOnly = false,
this.maxLength,
this.onChanged,
this.onEditingComplete,
this.onSubmitted,
this.onAppPrivateCommand,
this.inputFormatters,
this.keyboardAppearance,
this.dragStartBehavior = DragStartBehavior.start,
this.enableInteractiveSelection,
this.selectionControls,
this.onTap,
this.onTapOutside,
this.scrollController,
this.scrollPhysics,
this.restorationId,
this.size = ControlSize.regular,
this.placeholder,
this.onDebounce,
this.debounceDuration = const Duration(milliseconds: 300),
this.prepend,
this.prefix,
this.prefixIcon,
this.prefixText,
this.prefixPlaceholder,
this.suffixPlaceholder,
this.suffixText,
this.suffixIcon,
this.suffix,
this.append,
this.clearable = false,
this.togglePassword = false,
this.success,
this.warning,
this.disabled,
this.filled = false,
this.filledColor,
}) : super(key: key);