0% found this document useful (0 votes)
10 views

Use Lists _ Flutter

Uploaded by

telegram23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Use Lists _ Flutter

Uploaded by

telegram23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

12/29/24, 1:21 PM Use lists | Flutter

Use lists
Cookbook chevron_right Lists chevron_right Use lists

Contents
Create a ListView
Interactive example

Displaying lists of data is a fundamental pattern for mobile apps. Flutter includes the ListView widget to make working with lists a
breeze.

Create a ListView
Using the standard ListView constructor is perfect for lists that contain only a few items. The built-in ListTile widget is a way to
give items a visual structure.

dart
ListView(
children: const <Widget>[
ListTile(
leading: Icon(Icons.map),
title: Text('Map'),
),
ListTile(
leading: Icon(Icons.photo_album),
title: Text('Album'),
),
ListTile(
leading: Icon(Icons.phone),
title: Text('Phone'),
),
],
),

Interactive example

https://docs.flutter.dev/cookbook/lists/basic-list 1/1

You might also like