Skip to content

Commit f5beaef

Browse files
authored
Update listview.dart
1 parent 5745d75 commit f5beaef

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

listview.dart

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
11

2+
// To create a list of items using listview ---
3+
4+
5+
ListView.builder(
6+
itemCount: 20,
7+
itemBuilder: (context, position) {
8+
return Card(
9+
child: Padding(
10+
padding: const EdgeInsets.all(20.0),
11+
child: Text(
12+
'Your data',
13+
style: TextStyle(fontSize: 22.0),
14+
),
15+
),
16+
);
17+
},
18+
),
19+

0 commit comments

Comments
 (0)