textStyle property

  1. @override
TextStyle? textStyle
final

Style for the chat bubble's text.

Defaults to null.

Example:


@override
Widget build(BuildContext context) {
  return SfChat(
    incomingBubbleSettings: ChatBubbleSettings(
      textStyle: TextStyle(fontSize: 14),
    ),
    outgoingBubbleSettings: ChatBubbleSettings(
      textStyle: TextStyle(fontSize: 14),
    ),
  );
}

Implementation

@override
final TextStyle? textStyle;