AntdInputBase<WidgetType> constructor
const
AntdInputBase<WidgetType> ({
- Key? key,
- AntdInputStyle? style,
- AntdStyleBuilder<
AntdInputStyle, WidgetType> ? styleBuilder, - FocusNode? focusNode,
- bool clearable = true,
- String? value,
- bool disabled = false,
- ValueChanged<
String?> ? onChange, - VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmitted, - VoidCallback? onClear,
- Widget? placeholder,
- bool readOnly = false,
- AntdInputController? controller,
- TextAlign textAlign = TextAlign.start,
- bool obscureIcon = true,
- bool obscureText = false,
- bool autocorrect = false,
- int? maxLines,
- int? minLines,
- int? maxLength,
- TextInputType? keyboardType = TextInputType.text,
- TextInputAction? inputAction,
- SelectionChangedCallback? onSelectionChanged,
- List<
TextInputFormatter> ? formatters, - Widget? prefix,
- Widget? suffix,
- VoidCallback? onTap,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- UndoHistoryController? undoController,
- SpellCheckConfiguration? spellCheckConfiguration,
- TextMagnifierConfiguration? magnifierConfiguration,
- AppPrivateCommandCallback? onAppPrivateCommand,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollController? scrollController,
- ScrollPhysics? scrollPhysics = const ClampingScrollPhysics(),
- Clip clipBehavior = Clip.hardEdge,
- AntdOnFocus? onFocus,
Implementation
const AntdInputBase({
super.key,
super.style,
super.styleBuilder,
this.focusNode,
this.clearable = true,
this.value,
this.disabled = false,
this.onChange,
this.onEditingComplete,
this.onSubmitted,
this.onClear,
this.placeholder,
this.readOnly = false,
this.controller,
this.textAlign = TextAlign.start,
this.obscureIcon = true,
this.obscureText = false,
this.autocorrect = false,
this.maxLines,
this.minLines,
this.maxLength,
this.keyboardType = TextInputType.text,
this.inputAction,
this.onSelectionChanged,
this.formatters,
this.prefix,
this.suffix,
this.onTap,
this.contextMenuBuilder,
this.undoController,
this.spellCheckConfiguration,
this.magnifierConfiguration,
this.onAppPrivateCommand,
this.dragStartBehavior = DragStartBehavior.start,
this.scrollController,
this.scrollPhysics = const ClampingScrollPhysics(),
this.clipBehavior = Clip.hardEdge,
this.onFocus,
});