feat(consultant):

This commit is contained in:
mso7nueh
2024-10-09 11:39:01 +03:00
parent 3fba10b73f
commit f79fd4fa61
6 changed files with 124 additions and 21 deletions

View File

@@ -238,9 +238,9 @@ class _ChatScreenState extends State<ChatScreen> {
if (result != null) {
List<File> files = result.paths.map((path) => File(path!)).toList();
chatRoomCubit.sendMessage(
chatId: widget.chatId,
files: files,
);
chatId: widget.chatId,
files: files,
);
} else {
// User canceled the picker
}
@@ -309,9 +309,9 @@ class _ChatScreenState extends State<ChatScreen> {
onTap: () {
if (textEditingController.text.isNotEmpty) {
chatRoomCubit.sendMessage(
chatId: widget.chatId,
data: textEditingController.text.trim(),
);
chatId: widget.chatId,
data: textEditingController.text.trim(),
);
setState(() {
textEditingController.clear();
});