responseMessageSettings property

AssistMessageSettings responseMessageSettings
final

Options for changing the appearance and behavior of response message bubble.

The responseMessageSettings 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(
    responseMessageSettings: const AssistMessageSettings(
      showAuthorName: true,
      showTimestamp: true,
      showAuthorAvatar: true,
      widthFactor: 0.8,
      avatarSize: Size.square(32.0),
      headerPadding: EdgeInsetsDirectional.only(bottom: 3.0),
      footerPadding: EdgeInsetsDirectional.only(top: 4.0),
    ),
  );
}

Implementation

final AssistMessageSettings responseMessageSettings;