Home > Blockchain >  Flutter , keeping container of a ListView on the top of the screen when scrolling down
Flutter , keeping container of a ListView on the top of the screen when scrolling down

Time:09-21

how to keep a specific container of a ListView on the top of the screen when scrolling down?

for example:


appBar


image1(inside the listview)


tabs(should stay below appBar but image1 disappears when scrolling down)


list item 1


list item 2 ....


navBar

CodePudding user response:

You have to work with SliverList and SliverAppBar to achieve a layout like that.

Read more about it in this article.

  • Related