requestBubbleSettings property
Options for changing the appearance and behavior of request message bubble.
The requestBubbleSettings property allows you to configure how request 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(
requestBubbleSettings: 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 requestBubbleSettings;