SimpleTextMessage constructor

const SimpleTextMessage({
  1. Key? key,
  2. required TextMessage message,
  3. required int index,
  4. EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
  5. BorderRadiusGeometry? borderRadius,
  6. BoxConstraints? constraints,
  7. double? onlyEmojiFontSize = 48,
  8. Color? sentBackgroundColor,
  9. Color? receivedBackgroundColor,
  10. TextStyle? sentTextStyle,
  11. TextStyle? receivedTextStyle,
  12. TextStyle? timeStyle,
  13. bool showTime = true,
  14. bool showStatus = true,
  15. TimeAndStatusPosition timeAndStatusPosition = TimeAndStatusPosition.end,
  16. EdgeInsetsGeometry? timeAndStatusPositionInlineInsets = const EdgeInsets.only(bottom: 2),
  17. LinkPreviewPosition linkPreviewPosition = LinkPreviewPosition.bottom,
})

Creates a widget to display a simple text message.

Implementation

const SimpleTextMessage({
  super.key,
  required this.message,
  required this.index,
  this.padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
  this.borderRadius,
  this.constraints,
  this.onlyEmojiFontSize = 48,
  this.sentBackgroundColor,
  this.receivedBackgroundColor,
  this.sentTextStyle,
  this.receivedTextStyle,
  this.timeStyle,
  this.showTime = true,
  this.showStatus = true,
  this.timeAndStatusPosition = TimeAndStatusPosition.end,
  this.timeAndStatusPositionInlineInsets = const EdgeInsets.only(bottom: 2),
  this.linkPreviewPosition = LinkPreviewPosition.bottom,
});