contentBackgroundColor property

  1. @override
Color? contentBackgroundColor
final

Background color of the message content.

Defaults to null.

Example:


@override
Widget build(BuildContext context) {
  return SfChat(
    incomingBubbleSettings: ChatBubbleSettings(
      contentBackgroundColor: Colors.grey[200],
    ),
    outgoingBubbleSettings: ChatBubbleSettings(
      contentBackgroundColor: Colors.grey[400],
    ),
  );
}

Implementation

@override
final Color? contentBackgroundColor;