fluffychat
fluffychat copied to clipboard
slow ui action cause by chat list item build
Bug Description
when enter chat, the chat list item should not be build, and when it comes to one of it change, it should just rebuild specify one instead of all of it.
Steps to Reproduce
- flutter run -d android --profile
- join 10 rooms
- enter one room
- enter flutter profile performance tab
- use other app to post messages into 10 rooms one by one
- watch the performance tab with frame action above 60ms
- watch it timeline
Expected Behavior
expect chat list item don't build after enter chat, it would save 20ms at ui render which ease laggy. expect chat list item only build at it own room change, don't build all, it will help at laggy.
App Version
1.19.2
Additional Platform Information
android, redmi 10
Additional Context
No response