We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I display the message of the current user on the right-hand side of the screen? I see it on your demo but can't find a way to implement it.
The text was updated successfully, but these errors were encountered:
The ChatMessage objects user property should match with the DashChat user property:
ChatMessage
user
DashChat
There is your chat message:
ChatMessage( text: "Hello", user: ChatUser( //this should match name: "Fayeed", uid: "123456789", avatar: "https://www.wrappixel.com/ampleadmin/assets/images/users/4.jpg", ), createdAt: DateTime.now(), image: "http://www.sclance.com/images/picture/Picture_753248.jpg", );
with this:
DashChat( user: ChatUser( name: "Fayeed", uid: "123456789", avatar: "https://www.wrappixel.com/ampleadmin/assets/images/users/4.jpg", ) );
Most importantly the uid of ChatUser should be the same.
uid
ChatUser
Sorry, something went wrong.
Awesome! my issue has been fixed. Thanks!
No branches or pull requests
How can I display the message of the current user on the right-hand side of the screen? I see it on your demo but can't find a way to implement it.
The text was updated successfully, but these errors were encountered: