ChatBubbleSettings constructor

const ChatBubbleSettings({
  1. bool showUserName = true,
  2. bool showTimestamp = true,
  3. bool showUserAvatar = true,
  4. DateFormat? timestampFormat,
  5. TextStyle? textStyle,
  6. TextStyle? headerTextStyle,
  7. Color? contentBackgroundColor,
  8. ShapeBorder? contentShape,
  9. double widthFactor = 0.8,
  10. Size avatarSize = const Size.square(32.0),
  11. EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(vertical: 8.0),
  12. EdgeInsetsGeometry? contentPadding = 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 ChatBubbleSettings with the given customization options.

Implementation

const ChatBubbleSettings({
  this.showUserName = true,
  this.showTimestamp = true,
  this.showUserAvatar = true,
  this.timestampFormat,
  this.textStyle,
  this.headerTextStyle,
  this.contentBackgroundColor,
  this.contentShape,
  this.widthFactor = 0.8,
  this.avatarSize = const Size.square(32.0),
  this.padding = const EdgeInsets.symmetric(vertical: 8.0),
  this.contentPadding =
      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),
});