ReadyInput constructor
const
ReadyInput({
- Key? key,
- Widget? prefixIcon,
- String? label,
- bool showLabelInside = true,
- String? hint,
- bool isObscure = false,
- AutovalidateMode? autovalidateMode,
- TextInputType textInputType = TextInputType.text,
- TextInputAction textInputAction = TextInputAction.done,
- TextEditingController? controller,
- String? validator()?,
- bool enabled = true,
- bool autoFocus = false,
- int minLines = 1,
- int? maxLines,
- bool readOnly = false,
- dynamic onTap()?,
- dynamic onChanged()?,
- Widget? suffixIcon,
- int? maxLength,
- List<
TextInputFormatter> ? inputFormatters, - InputDecorationType decorationType = InputDecorationType.outlined,
- FocusNode? focusNode,
- void onFieldSubmitted()?,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- TextStyle? style,
- CursorStyleData? cursorStyle,
- bool enableSuggestions = true,
- bool enableInteractiveSelection = true,
- Widget? buildCounter(
- BuildContext, {
- int currentLength,
- bool isFocused,
- int? maxLength,
- bool expands = false,
- VoidCallback? onEditingComplete,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- 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,
});