ChatMessageSettings constructor

const ChatMessageSettings({
  1. bool showAuthorName = true,
  2. bool showTimestamp = true,
  3. bool showAuthorAvatar = true,
  4. DateFormat? timestampFormat,
  5. TextStyle? textStyle,
  6. TextStyle? headerTextStyle,
  7. Color? backgroundColor,
  8. ShapeBorder? shape,
  9. double widthFactor = 0.8,
  10. Size avatarSize = const Size.square(32.0),
  11. EdgeInsetsGeometry? margin = const EdgeInsetsDirectional.only(top: 16.0),
  12. EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
  13. EdgeInsetsGeometry? avatarPadding,
  14. EdgeInsetsGeometry headerPadding = const EdgeInsetsDirectional.only(bottom: 4.0),
  15. EdgeInsetsGeometry footerPadding = const EdgeInsetsDirectional.only(top: 4.0),
})

Creates a ChatMessageSettings with the given customization options.

Implementation

const ChatMessageSettings({
  this.showAuthorName = true,
  this.showTimestamp = true,
  this.showAuthorAvatar = true,
  this.timestampFormat,
  this.textStyle,
  this.headerTextStyle,
  this.backgroundColor,
  this.shape,
  this.widthFactor = 0.8,
  this.avatarSize = const Size.square(32.0),
  this.margin = const EdgeInsetsDirectional.only(top: 16.0),
  this.padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
  this.avatarPadding,
  this.headerPadding = const EdgeInsetsDirectional.only(bottom: 4.0),
  this.footerPadding = const EdgeInsetsDirectional.only(top: 4.0),
});