V2 Usage
#671
Replies: 1 comment
-
Hello! So for the first problem it would be enough to export For the second issue I think I can reduce equality check to IDs only, will that help? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey thanks for the great library. Using the v2 for a project and it is working great. Some minor issues I am facing but I have been able to handle:
Building my own ChatInput so using inputBuilder. I am under the impression that for layout of the main screen to be properly calculated I have to use
ChatInputHeightNotifier
(in_updateInputHeight
). But this is not "exported" so I need toimport 'package:flutter_chat_ui/src/utils/chat_input_height_notifier.dart';
for which of course I get a warning. If I don't handleChatInputHeightNotifier
, the chat area goes behind my customChatInput
.I am also using a custom
ChatController
as I want to have my own data model for messages. In my customChatController
I end up having to store all theflutter_chat_ui
messages in case of update because of (I believe)flutter_chat_ui/packages/flutter_chat_ui/lib/src/chat_message/chat_message_internal.dart
Line 52 in be518f8
id
equality would be enough It will allow me to only save messages with my model and recreateflutter_chat_ui
messages inList<Message> get messages
on the fly.Keep up the great work!
Screen.Recording.2024-11-08.at.21.59.34.mov
Beta Was this translation helpful? Give feedback.
All reactions