ReadyInput constructor

const ReadyInput({
  1. Key? key,
  2. Widget? prefixIcon,
  3. String? label,
  4. bool showLabelInside = true,
  5. String? hint,
  6. bool isObscure = false,
  7. AutovalidateMode? autovalidateMode,
  8. TextInputType textInputType = TextInputType.text,
  9. TextInputAction textInputAction = TextInputAction.done,
  10. TextEditingController? controller,
  11. String? validator(
    1. String?
    )?,
  12. bool enabled = true,
  13. bool autoFocus = false,
  14. int minLines = 1,
  15. int? maxLines,
  16. bool readOnly = false,
  17. dynamic onTap()?,
  18. dynamic onChanged(
    1. String
    )?,
  19. Widget? suffixIcon,
  20. int? maxLength,
  21. List<TextInputFormatter>? inputFormatters,
  22. InputDecorationType decorationType = InputDecorationType.outlined,
  23. FocusNode? focusNode,
  24. void onFieldSubmitted(
    1. String
    )?,
  25. TextCapitalization textCapitalization = TextCapitalization.none,
  26. TextAlign textAlign = TextAlign.start,
  27. TextAlignVertical? textAlignVertical,
  28. TextStyle? style,
  29. CursorStyleData? cursorStyle,
  30. bool enableSuggestions = true,
  31. bool enableInteractiveSelection = true,
  32. Widget? buildCounter(
    1. BuildContext, {
    2. int currentLength,
    3. bool isFocused,
    4. int? maxLength,
    })?,
  33. bool expands = false,
  34. VoidCallback? onEditingComplete,
  35. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  36. BorderRadius? borderRadius,
})

Implementation

const ReadyInput({
  super.key,
  this.prefixIcon,
  this.label,
  this.showLabelInside = true, // NEW FLAG
  this.hint,
  this.isObscure = false,
  this.autovalidateMode,
  this.textInputType = TextInputType.text,
  this.textInputAction = TextInputAction.done,
  this.controller,
  this.validator,
  this.enabled = true,
  this.autoFocus = false,
  this.minLines = 1,
  this.maxLines,
  this.readOnly = false,
  this.onTap,
  this.onChanged,
  this.suffixIcon,
  this.maxLength,
  this.inputFormatters,
  this.decorationType = InputDecorationType.outlined,
  this.focusNode,
  this.onFieldSubmitted,
  this.textCapitalization = TextCapitalization.none,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.style,
  this.cursorStyle,
  this.enableSuggestions = true,
  this.enableInteractiveSelection = true,
  this.buildCounter,
  this.expands = false,
  this.onEditingComplete,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.borderRadius,
});