InputSection constructor
const
InputSection({
- Key? key,
- required double leftInputMargin,
- required double rightInputMargin,
- required bool hasSendButton,
- required bool shouldShowSendButton,
- required FocusNode focusNode,
- required MentionInputTextEditingController controller,
- required bool shouldHideLeftWidgets,
- required bool shouldHideRightWidgets,
- List<
Widget> ? leftWidgets, - List<
Widget> ? rightWidgets, - Function? onSend,
- bool clearTextAfterSent = true,
- String? placeHolder,
- bool? autoFocus,
- EdgeInsetsGeometry? padding,
- Color? color,
- BorderRadius? borderRadius,
- Decoration? decoration,
- Widget? sendIcon,
- Color? cursorColor,
- int? maxLength,
- int? minLines,
- int? maxLines,
- TextInputType? keyboardType,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextAlign textAlign = TextAlign.start,
- TextStyle? style,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
Implementation
const InputSection(
{super.key,
required this.leftInputMargin,
required this.rightInputMargin,
required this.hasSendButton,
required this.shouldShowSendButton,
required this.focusNode,
required this.controller,
required this.shouldHideLeftWidgets,
required this.shouldHideRightWidgets,
this.leftWidgets,
this.rightWidgets,
this.onSend,
this.clearTextAfterSent = true,
this.placeHolder,
this.autoFocus,
this.padding,
this.color,
this.borderRadius,
this.decoration,
this.sendIcon,
this.cursorColor,
this.maxLength,
this.minLines,
this.maxLines,
this.keyboardType,
this.textCapitalization = TextCapitalization.none,
this.textAlign = TextAlign.start,
this.style,
this.textAlignVertical,
this.textDirection});