KInput constructor

const KInput({
  1. Key? key,
  2. bool? error = false,
  3. TextEditingController? controller,
  4. FocusNode? focusNode,
  5. TextInputType? keyboardType,
  6. TextInputAction? textInputAction,
  7. TextCapitalization textCapitalization = TextCapitalization.none,
  8. TextAlign textAlign = TextAlign.start,
  9. bool autofocus = false,
  10. String obscuringCharacter = '•',
  11. bool obscureText = false,
  12. bool autocorrect = true,
  13. bool enableSuggestions = true,
  14. bool expands = false,
  15. bool readOnly = false,
  16. int? maxLength,
  17. void onChanged(
    1. String
    )?,
  18. void onEditingComplete()?,
  19. void onSubmitted(
    1. String
    )?,
  20. void onAppPrivateCommand(
    1. String,
    2. Map<String, dynamic>
    )?,
  21. List<TextInputFormatter>? inputFormatters,
  22. Brightness? keyboardAppearance,
  23. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  24. bool? enableInteractiveSelection,
  25. TextSelectionControls? selectionControls,
  26. void onTap()?,
  27. void onTapOutside(
    1. PointerDownEvent
    )?,
  28. ScrollController? scrollController,
  29. ScrollPhysics? scrollPhysics,
  30. String? restorationId,
  31. ControlSize size = ControlSize.regular,
  32. String? placeholder,
  33. dynamic onDebounce(
    1. String
    )?,
  34. Duration debounceDuration = const Duration(milliseconds: 300),
  35. Widget? prepend,
  36. Widget? prefix,
  37. Widget? prefixIcon,
  38. String? prefixText,
  39. String? prefixPlaceholder,
  40. String? suffixPlaceholder,
  41. String? suffixText,
  42. Widget? suffixIcon,
  43. Widget? suffix,
  44. Widget? append,
  45. bool clearable = false,
  46. bool togglePassword = false,
  47. bool? success,
  48. bool? warning,
  49. bool? disabled,
  50. bool filled = false,
  51. 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);