小编www*_*ata的帖子

在顶部添加新项目时,在ListView中保持滚动位置

I am using a ListView.builder to render a chat.

The scenario is the following: A user types in a new chat message, when that happens i am storing the new message in state and therefore the itemCount is increased by one.

If i am at the end of the list, I see the new item directly at the top, everything is OK.

However, if I am in the middle of the chat and an item is added, the view scrolls …

flutter

5
推荐指数
1
解决办法
313
查看次数

标签 统计

flutter ×1