SimpleTextMessage constructor
const
SimpleTextMessage({
- Key? key,
- required TextMessage message,
- required int index,
- EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
- BorderRadiusGeometry? borderRadius,
- BoxConstraints? constraints,
- double? onlyEmojiFontSize = 48,
- Color? sentBackgroundColor,
- Color? receivedBackgroundColor,
- TextStyle? sentTextStyle,
- TextStyle? receivedTextStyle,
- TextStyle? timeStyle,
- bool showTime = true,
- bool showStatus = true,
- TimeAndStatusPosition timeAndStatusPosition = TimeAndStatusPosition.end,
- EdgeInsetsGeometry? timeAndStatusPositionInlineInsets = const EdgeInsets.only(bottom: 2),
- 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,
});