KEMBAR78
ListView.pptx
ListView
Introduction
Nabin Dhakal(/nabindhakal) @nabin.dhakal
Nabin Dhakal(/nabin.dhakal.714) Flutter Junction
ndhakal10@gmail.com
nbnD
ListView
● It is a widget that is used to display items in a linear manner.
● It has different types of scrolling behaviour.
● It displays its children one after another in either in vertical or horizontal
manner.
Types
1. ListView
2. ListView.builder
3. ListView.separated
4. ListView.custom
1. ListView
1. It is a default constructor that takes list of children.
1. It is appropriate for a small number of children.
1. Use it to display a static list of children whose count does
not change.
Use ListView
2. ListView.builder
1. It takes an IndexedWidgetBuilder, which builds the
children on demand.
1. It is basically used for the list views with large number of
children.
Use ListView.builder
3. ListView.separated
1. It is used to generate the list like others but also here we
can specify the separated widget between each item.
1. It is appropriate for list views with a fixed number of
children.
Use ListView.separated
4. ListView.custom
1. It is used to build ListViews with custom functionality for
the how the children are built.
1. The main parameter required for this is a
SliverChildDelegate which builds the items.
Use ListView.custom
Thank You!!!
Nabin Dhakal(nabindhakal/) @nabin.dhakal
Nabin Dhakal(/nabin.dhakal.714) Flutter Junction
ndhakal10@gmail.com
nbnD

ListView.pptx