-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
infinite-listview-in-flutter.dart
44 lines (40 loc) · 1.16 KB
/
infinite-listview-in-flutter.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// 🐦 Twitter https://twitter.com/vandadnp
// 🔵 LinkedIn https://linkedin.com/in/vandadnp
// 🎥 YouTube https://youtube.com/c/vandadnp
// 💙 Free Flutter Course https://linktr.ee/vandadnp
// 📦 11+ Hours Bloc Course https://youtu.be/Mn254cnduOY
// 🤝 Want to support my work? https://buymeacoffee.com/vandad
import 'package:flutter/material.dart';
void main() {
runApp(
const MaterialApp(
debugShowCheckedModeBanner: false,
home: HomePage(),
),
);
}
class HomePage extends StatelessWidget {
const HomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Infinite ListView in Flutter'),
),
body: Padding(
padding: const EdgeInsets.all(8.0),
child: ListView.builder(
itemExtent: 64,
padding: const EdgeInsets.all(6.0),
itemBuilder: (context, index) {
return ListTile(
title: Text(
'Item #${index + 1}',
),
);
},
),
),
);
}
}