forked from eatvio/eatvio_app
feat(chat): refactor
This commit is contained in:
@@ -236,9 +236,9 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
onTap: () {
|
||||
if (textEditingController.text.isNotEmpty) {
|
||||
context.read<ChatRoomCubit>().sendMessage(
|
||||
chatId: widget.chatId,
|
||||
data: textEditingController.text.trim(),
|
||||
);
|
||||
chatId: widget.chatId,
|
||||
data: textEditingController.text.trim(),
|
||||
);
|
||||
setState(() {
|
||||
textEditingController.clear();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user