Code Monkey home page Code Monkey logo

Comments (3)

demchenkoalex avatar demchenkoalex commented on June 26, 2024 3

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 v2 branch. There I try to use all best practices and I always check performance metrics so I know that the foundation I build on is performant. I tried showing thousands of messages on v2 branch and it was fast, where v1 lags after like 30. Unfortunately I can't provide a "fix" for v1, cause it is all bad, it was practically easier to write from scratch than fix it.

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.

from flutter_chat_ui.

aronfernandes-cci avatar aronfernandes-cci commented on June 26, 2024

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.

from flutter_chat_ui.

Riki1200 avatar Riki1200 commented on June 26, 2024

I suggest you customize bubbleBuilder when you try to valid type of message, for example, you can try to resize image o compress every image in the chat.
image
there's a lot method to do something for this

from flutter_chat_ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.