contentPadding property

  1. @override
EdgeInsetsGeometry? contentPadding
final

Customizes the padding around the bubble's content.

Defaults to EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0).

Example:


@override
Widget build(BuildContext context) {
  return SfChat(
    incomingBubbleSettings: ChatBubbleSettings(
      contentPadding:
          const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
    ),
    outgoingBubbleSettings: ChatBubbleSettings(
      contentPadding:
          const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
    ),
  );
}

Implementation

@override
final EdgeInsetsGeometry? contentPadding;