Composer constructor
const
Composer({
- Key? key,
- TextEditingController? textEditingController,
- double? left = 0,
- double? right = 0,
- double? top,
- double? bottom = 0,
- double? sigmaX = 20,
- double? sigmaY = 20,
- EdgeInsetsGeometry? padding = const EdgeInsets.only(left: 16, right: 16, top: 11, bottom: 11),
- Widget? attachmentIcon = const Icon(Icons.attachment),
- Widget? sendIcon = const Icon(Icons.send),
- double? gap = 8,
- InputBorder? inputBorder = const OutlineInputBorder(borderSide: BorderSide.none, borderRadius: BorderRadius.all(Radius.circular(24))),
- bool? filled = true,
- Widget? topWidget,
- bool? handleSafeArea = true,
- Color? backgroundColor,
- Color? attachmentIconColor,
- Color? sendIconColor,
- Color? emptyFieldSendIconColor,
- Color? hintColor,
- Color? textColor,
- Color? inputFillColor,
- String? hintText = 'Type a message',
- Brightness? keyboardAppearance,
- bool? autocorrect,
- bool autofocus = false,
- TextCapitalization textCapitalization = TextCapitalization.sentences,
- TextInputType? keyboardType,
- TextInputAction? textInputAction = TextInputAction.newline,
- FocusNode? focusNode,
- int? maxLength,
- int? minLines = 1,
- int? maxLines = 3,
- required ShapeBorder? shapeBorder,
Creates a message composer widget.
Implementation
const Composer({
super.key,
this.textEditingController,
this.left = 0,
this.right = 0,
this.top,
this.bottom = 0,
this.sigmaX = 20,
this.sigmaY = 20,
this.padding = const EdgeInsets.only(
left: 16,
right: 16,
top: 11,
bottom: 11,
),
this.attachmentIcon = const Icon(Icons.attachment),
this.sendIcon = const Icon(Icons.send),
this.gap = 8,
this.inputBorder = const OutlineInputBorder(
borderSide: BorderSide.none,
borderRadius: BorderRadius.all(Radius.circular(24)),
),
this.filled = true,
this.topWidget,
this.handleSafeArea = true,
this.backgroundColor,
this.attachmentIconColor,
this.sendIconColor,
this.emptyFieldSendIconColor,
this.hintColor,
this.textColor,
this.inputFillColor,
this.hintText = 'Type a message',
this.keyboardAppearance,
this.autocorrect,
this.autofocus = false,
this.textCapitalization = TextCapitalization.sentences,
this.keyboardType,
this.textInputAction = TextInputAction.newline,
this.focusNode,
this.maxLength,
this.minLines = 1,
this.maxLines = 3,
required this.shapeBorder,
});