-
Notifications
You must be signed in to change notification settings - Fork 718
New issue
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
While scrolling every message in the chat is rebuilt which is causing performance issues #577
Comments
Hey @aronfernandes-cci with listview builder it will also be rebuilt :D I guess I do not need to describe a concept of recycling views when every list item is destroyed when going off the screen and then created from a copy when entering. This is expected. The problem is in the poorly written code. It is simply bad. When I started all this I had minimal Flutter knowledge. I noticed all these issues too and I basically removed all the code one day and started from scratch with all knowledge gained, on a Currently I am working on fixing images being reloaded after I change message id or remove elements from the list, maybe it is something related to your own problem. I finally figured I can do a custom image provider to fix the issue, so doing exactly this now. Then I will test my solution against api, firebase and chat GPT to see that everything is performant and foundation works. Only after that I will be able to release some alpha version, but it will be super simple at first. Then I will start adding features from v1/accepting contributions and finally adding long requested stuff like replies, reactions and audio messages. Given I spent like a month trying to fix the images I can't give you a timeline. Sometimes I will just face some blocker I don't know how to solve and will be trying a million of different things. All after my full time job and some personal life at least. |
thank you for the information and help. and also problem only comes with scrolling custom messages and custom image messages. Text messages scroll very smoothly. |
Thanks for the huge effort, super grateful. How about an initial release without image support so we can all get our hands on it? |
did not work on this for the last month (lots of work) I feel I am almost there with images and will try to finish at least v2 preview in the coming month |
|
While scrolling every message in the chat is rebuilt which is causing performance issues.
So for eg. i have custom message with 3 images, every time i scroll its rebuilt which makes the app laggy and gives bad experience for the user.
Just wanted to know if the listview.builder is used in the package ? and also when this can be fixed because i feel this is a very big issue wrt performance as it crashes the app for our clients.
The text was updated successfully, but these errors were encountered: