InputOptions constructor
const
InputOptions({
- TextEditingController? textController,
- FocusNode? focusNode,
- TextStyle? textStyle,
- InputDecoration? decoration,
- int? maxLines = 5,
- int? minLines = 1,
- bool sendOnEnter = true,
- bool readOnly = false,
- bool autocorrect = true,
- EdgeInsets? margin,
- BoxDecoration? containerDecoration,
- Color? containerBackgroundColor = Colors.transparent,
- EdgeInsets? padding,
- EdgeInsets? containerPadding,
- double? inputHeight,
- double? inputContainerHeight,
- BoxConstraints? inputContainerConstraints,
- InputContainerWidth? inputContainerWidth,
- bool useOuterContainer = true,
- bool useOuterMaterial = false,
- double? materialElevation = 0,
- Color? materialColor,
- ShapeBorder? materialShape,
- EdgeInsets? materialPadding = const EdgeInsets.all(8.0),
- bool? useScaffoldBackground = false,
- TextDirection? inputTextDirection,
- double? positionedLeft,
- double? positionedRight,
- double? positionedBottom,
- double? positionedTop,
- double? blurStrength,
- bool clipBehavior = false,
- Widget sendButtonBuilder(
- VoidCallback onSend
- Color? sendButtonColor,
- Color? sendButtonDisableColor,
- IconData? sendButtonIcon = Icons.send,
- double? sendButtonIconSize = 24.0,
- EdgeInsets? sendButtonPadding = const EdgeInsets.all(4.0),
- TextInputType? keyboardType = TextInputType.multiline,
- TextCapitalization textCapitalization = TextCapitalization.sentences,
- TextInputAction? textInputAction = TextInputAction.newline,
- TextDirection? textDirection,
- List<
TextInputFormatter> ? inputFormatters, - bool enableSuggestions = true,
- bool enableIMEPersonalizedLearning = true,
- Color? cursorColor,
- double? cursorHeight,
- double? cursorWidth,
- Radius? cursorRadius,
- bool? showCursor,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmitted, - ValueChanged<
String> ? onChanged, - GestureTapCallback? onTap,
- bool unfocusOnTapOutside = false,
- MouseCursor? mouseCursor,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- UndoHistoryController? undoController,
- SpellCheckConfiguration? spellCheckConfiguration,
- TextMagnifierConfiguration? magnifierConfiguration,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- TextSelectionControls? selectionControls,
- Widget? voiceWidget,
Implementation
const InputOptions(
{this.textController,
this.focusNode,
this.textStyle,
this.decoration,
this.maxLines = 5,
this.minLines = 1,
this.sendOnEnter = true,
this.readOnly = false,
this.autocorrect = true,
this.margin,
this.containerDecoration,
this.containerBackgroundColor = Colors.transparent,
this.padding,
this.containerPadding,
this.inputHeight,
this.inputContainerHeight,
this.inputContainerConstraints,
this.inputContainerWidth,
this.useOuterContainer = true,
this.useOuterMaterial = false,
this.materialElevation = 0,
this.materialColor,
this.materialShape,
this.materialPadding = const EdgeInsets.all(8.0),
this.useScaffoldBackground = false,
this.inputTextDirection,
this.positionedLeft,
this.positionedRight,
this.positionedBottom,
this.positionedTop,
this.blurStrength,
this.clipBehavior = false,
this.sendButtonBuilder,
this.sendButtonColor,
this.sendButtonDisableColor,
this.sendButtonIcon = Icons.send,
this.sendButtonIconSize = 24.0,
this.sendButtonPadding = const EdgeInsets.all(4.0),
this.keyboardType = TextInputType.multiline,
this.textCapitalization = TextCapitalization.sentences,
this.textInputAction = TextInputAction.newline,
this.textDirection,
this.inputFormatters,
this.enableSuggestions = true,
this.enableIMEPersonalizedLearning = true,
this.cursorColor,
this.cursorHeight,
this.cursorWidth,
this.cursorRadius,
this.showCursor,
this.onEditingComplete,
this.onSubmitted,
this.onChanged,
this.onTap,
this.unfocusOnTapOutside = false,
this.mouseCursor,
this.contextMenuBuilder,
this.undoController,
this.spellCheckConfiguration,
this.magnifierConfiguration,
this.smartDashesType,
this.smartQuotesType,
this.selectionControls,
this.voiceWidget});