ChatMessageSettings constructor
const
ChatMessageSettings({
- bool showAuthorName = true,
- bool showTimestamp = true,
- bool showAuthorAvatar = true,
- DateFormat? timestampFormat,
- TextStyle? textStyle,
- TextStyle? headerTextStyle,
- Color? backgroundColor,
- ShapeBorder? shape,
- double widthFactor = 0.8,
- Size avatarSize = const Size.square(32.0),
- EdgeInsetsGeometry? margin = const EdgeInsetsDirectional.only(top: 16.0),
- EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
- EdgeInsetsGeometry? avatarPadding,
- EdgeInsetsGeometry headerPadding = const EdgeInsetsDirectional.only(bottom: 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),
});