responseBubbleSettings property
Options for changing the appearance and behavior of response message bubble.
The responseBubbleSettings property allows you to configure how response chat bubbles are displayed. This includes customization options for the user's avatar, username, timestamp, content background color, and various padding and shape options.
@override
Widget build(BuildContext context) {
return SfAIAssistView(
responseBubbleSettings: const AssistBubbleSettings(
showUserName: true,
showTimestamp: true,
showUserAvatar: true,
widthFactor: 0.8,
avatarSize: Size.square(32.0),
headerPadding: EdgeInsetsDirectional.only(bottom: 3.0),
footerPadding: EdgeInsetsDirectional.only(top: 4.0),
),
);
}
Implementation
final AssistBubbleSettings responseBubbleSettings;