Differences between SliverList vs ListView in Flutter #29954
-
Beta Was this translation helpful? Give feedback.
Answered by
surajadkhari
Aug 18, 2022
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
diwasche
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.