ChatBubbleSettings constructor
const
ChatBubbleSettings({
- bool showUserName = true,
- bool showTimestamp = true,
- bool showUserAvatar = true,
- DateFormat? timestampFormat,
- TextStyle? textStyle,
- TextStyle? headerTextStyle,
- Color? contentBackgroundColor,
- ShapeBorder? contentShape,
- double widthFactor = 0.8,
- Size avatarSize = const Size.square(32.0),
- EdgeInsetsGeometry padding = const EdgeInsets.all(2.0),
- EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
- EdgeInsetsGeometry? avatarPadding,
- EdgeInsetsGeometry headerPadding = const EdgeInsetsDirectional.only(top: 14.0, bottom: 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.all(2.0),
this.contentPadding =
const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
this.avatarPadding,
this.headerPadding =
const EdgeInsetsDirectional.only(top: 14.0, bottom: 4.0),
this.footerPadding = const EdgeInsetsDirectional.only(top: 4.0),
});