GetStream / flutter-samples

A collection of sample apps that use Stream
https://getstream.io/chat/docs/flutter-dart/
MIT License
301 stars 125 forks source link

new direct messages bug #58

Closed yeahs2000 closed 2 years ago

imtoori commented 3 years ago

can you elaborate more?

yeahs2000 commented 3 years ago

════════ Exception caught by widgets library ═══════════════════════════════════════════════════════ The following assertion was thrown building MessageInput(dirty, dependencies: [StreamChatTheme, _LocalizationsScope-[GlobalKey#29850]], state: MessageInputState#a52ab): Channel null is not yet initialized 'package:stream_chat_flutter/src/user_mentions_overlay.dart': Failed assertion: line 29 pos 11: 'channel.state != null'

The relevant error-causing widget was: MessageInput MessageInput:file:///Users/yejianhui/workspace/snail/snail_client/lib/pages/home/new_chat_screen.dart:391:19 When the exception was thrown, this was the stack:

2 new UserMentionsOverlay (package:stream_chat_flutter/src/user_mentions_overlay.dart:29:11)

3 MessageInputState._buildMentionsOverlayEntry (package:stream_chat_flutter/src/message_input.dart:1191:12)

papirovdavid commented 3 years ago

Hi, I currently have it happens every time

papirovdavid commented 3 years ago

Have downloaded the latest master version from GitHub: image

papirovdavid commented 3 years ago

Running, choosing the first user, click on New Chat button on the top, Then tap into the write message bar, and getting the crash

papirovdavid commented 3 years ago

image image

imtoori commented 2 years ago

this has been fixed in the latest 3.3.0