Skip to content

Differences between SliverList vs ListView in Flutter #29954

Answered by surajadkhari
diwasche asked this question in Mobile
Discussion options

You must be logged in to vote

There's almost no difference.

ListView is a SliverList. Same with GridView, which is a SliverGrid.

They are doing exactly the same thing. The only difference between them is that SliverList is a sliver, not a widget. Which means it's used inside a ScrollView, usually CustomScrollView.

ListView is nothing else but a biding of SliverList to transform it into a Widget to make it usable alongside other widgets such as Row/Container.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lapislazuli21
Comment options

Answer selected by diwasche
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Mobile
3 participants