Refactoring chatBubble.dart to stateful widget

This commit is contained in:
2023-05-06 20:48:22 +02:00
parent 290295b26a
commit ac88f84321
3 changed files with 106 additions and 61 deletions

View File

@ -64,9 +64,9 @@ class _ChatViewState extends State<ChatView> {
null
),
chatData: widget.room
).generateBubble());
));
}
messages.add(ChatBubble(context: context, isSender: element.actorId == widget.selfId, bubbleData: element, chatData: widget.room).generateBubble());
messages.add(ChatBubble(context: context, isSender: element.actorId == widget.selfId, bubbleData: element, chatData: widget.room));
});
}