widthFactor property

double widthFactor
final

Customizes the chat bubble's width as a fraction of the screen width.

Defaults to 0.8.

Example:


@override
Widget build(BuildContext context) {
  return SfChat(
    incomingBubbleSettings: ChatBubbleSettings(
      widthFactor: 0.8,
    ),
    outgoingBubbleSettings: ChatBubbleSettings(
      widthFactor: 0.8,
    ),
  );
}

Implementation

final double widthFactor;