showUserName property
Customizes whether to display the sender's username within the chat bubble.
Defaults to true
.
Example:
@override
Widget build(BuildContext context) {
return SfChat(
incomingBubbleSettings: ChatBubbleSettings(
showUserName: true,
),
outgoingBubbleSettings: ChatBubbleSettings(
showUserName: true,
),
);
}
Implementation
@override
final bool showUserName;