padding property

  1. @override
EdgeInsetsGeometry? padding
final

Customizes the padding around the entire bubble.

Defaults to EdgeInsets.all(2.0).

Example:


@override
Widget build(BuildContext context) {
  return SfChat(
    incomingBubbleSettings: ChatBubbleSettings(
      padding: const EdgeInsets.all(2.0),
    ),
    outgoingBubbleSettings: ChatBubbleSettings(
      padding: const EdgeInsets.all(2.0),
    ),
  );
}

Implementation

@override
final EdgeInsetsGeometry? padding;