AdaptiveCommandInput constructor

const AdaptiveCommandInput({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. bool autofocus = true,
  5. String placeholder = 'Search...',
  6. Widget? placeholderWidget,
  7. TextStyle? style,
  8. TextStyle? placeholderStyle,
  9. Color? cursorColor,
  10. double? cursorWidth,
  11. double? cursorHeight,
  12. Radius? cursorRadius,
  13. bool? cursorOpacityAnimates,
  14. bool? showCursor,
  15. ValueChanged<String>? onValueChange,
  16. EdgeInsetsGeometry? padding,
  17. Decoration? decoration,
  18. bool filled = false,
  19. Color? fillColor,
  20. BorderRadius? borderRadius,
  21. Widget? prefix,
  22. Widget? suffix,
  23. FocusOnKeyEventCallback? onKeyEvent,
  24. CommandInputEditorBuilder? editorBuilder,
  25. EditableTextContextMenuBuilder? contextMenuBuilder,
  26. bool autocorrect = false,
  27. bool enableSuggestions = true,
  28. TextCapitalization textCapitalization = TextCapitalization.none,
  29. SmartDashesType smartDashesType = SmartDashesType.disabled,
  30. SmartQuotesType smartQuotesType = SmartQuotesType.disabled,
  31. Brightness? keyboardAppearance,
  32. EdgeInsets scrollPadding = const EdgeInsets.all(20),
  33. bool unfocusOnSubmit = false,
  34. TargetPlatform? platform,
  35. 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,
});