requestMessageSettings property

AssistMessageSettings requestMessageSettings
final

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

The requestMessageSettings 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(
    requestMessageSettings: 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 requestMessageSettings;