Composer constructor

const Composer({
  1. Key? key,
  2. TextEditingController? textEditingController,
  3. double? left = 0,
  4. double? right = 0,
  5. double? top,
  6. double? bottom = 0,
  7. double? sigmaX = 20,
  8. double? sigmaY = 20,
  9. EdgeInsetsGeometry? padding = const EdgeInsets.only(left: 16, right: 16, top: 11, bottom: 11),
  10. Widget? attachmentIcon = const Icon(Icons.attachment),
  11. Widget? sendIcon = const Icon(Icons.send),
  12. double? gap = 8,
  13. InputBorder? inputBorder = const OutlineInputBorder(borderSide: BorderSide.none, borderRadius: BorderRadius.all(Radius.circular(24))),
  14. bool? filled = true,
  15. Widget? topWidget,
  16. bool? handleSafeArea = true,
  17. Color? backgroundColor,
  18. Color? attachmentIconColor,
  19. Color? sendIconColor,
  20. Color? emptyFieldSendIconColor,
  21. Color? hintColor,
  22. Color? textColor,
  23. Color? inputFillColor,
  24. String? hintText = 'Type a message',
  25. Brightness? keyboardAppearance,
  26. bool? autocorrect,
  27. bool autofocus = false,
  28. TextCapitalization textCapitalization = TextCapitalization.sentences,
  29. TextInputType? keyboardType,
  30. TextInputAction? textInputAction = TextInputAction.newline,
  31. FocusNode? focusNode,
  32. int? maxLength,
  33. int? minLines = 1,
  34. int? maxLines = 3,
  35. 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,
});