Flutter List View

Introduction

List View class is a scroll-able list of widgets arranged linearly.It displays its children one after another in the scroll direction.

  • The default constructor takes an explicit List<Widget> of children. This constructor is appropriate for list views with a small number of children because constructing the List requires doing work for every child that could possibly be displayed in the list view instead of just those children that are actually visible.
  • The ListView.builder constructor takes an IndexedWidgetBuilder, which builds the children on demand. This constructor is appropriate for list views with a large (or infinite) number of children because the builder is called only for those children that are actually visible.

List view builder

This constructor is a appropriate with large and infinite children. It takes an IndexedWidgetBuilder, which builds the children on demand.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mercy Jemosop

Mercy Jemosop

119 Followers

Software Developer connect with me on twitter @kipyegon_mercy