AdaptiveCommandInput constructor
const
AdaptiveCommandInput({
- Key? key,
- TextEditingController? controller,
- FocusNode? focusNode,
- bool autofocus = true,
- String placeholder = 'Search...',
- Widget? placeholderWidget,
- TextStyle? style,
- TextStyle? placeholderStyle,
- Color? cursorColor,
- double? cursorWidth,
- double? cursorHeight,
- Radius? cursorRadius,
- bool? cursorOpacityAnimates,
- bool? showCursor,
- ValueChanged<
String> ? onValueChange, - EdgeInsetsGeometry? padding,
- Decoration? decoration,
- bool filled = false,
- Color? fillColor,
- BorderRadius? borderRadius,
- Widget? prefix,
- Widget? suffix,
- FocusOnKeyEventCallback? onKeyEvent,
- CommandInputEditorBuilder? editorBuilder,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- bool autocorrect = false,
- bool enableSuggestions = true,
- TextCapitalization textCapitalization = TextCapitalization.none,
- SmartDashesType smartDashesType = SmartDashesType.disabled,
- SmartQuotesType smartQuotesType = SmartQuotesType.disabled,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20),
- bool unfocusOnSubmit = false,
- TargetPlatform? platform,
- double minHeight = 44.0,
Implementation
const AdaptiveCommandInput({
super.key,
this.controller,
this.focusNode,
this.autofocus = true,
this.placeholder = 'Search...',
this.placeholderWidget,
this.style,
this.placeholderStyle,
this.cursorColor,
this.cursorWidth,
this.cursorHeight,
this.cursorRadius,
this.cursorOpacityAnimates,
this.showCursor,
this.onValueChange,
this.padding,
this.decoration,
this.filled = false,
this.fillColor,
this.borderRadius,
this.prefix,
this.suffix,
this.onKeyEvent,
this.editorBuilder,
this.contextMenuBuilder,
this.autocorrect = false,
this.enableSuggestions = true,
this.textCapitalization = TextCapitalization.none,
this.smartDashesType = SmartDashesType.disabled,
this.smartQuotesType = SmartQuotesType.disabled,
this.keyboardAppearance,
this.scrollPadding = const EdgeInsets.all(20),
this.unfocusOnSubmit = false,
this.platform,
this.minHeight = 44.0,
});