Skip to content

Instantly share code, notes, and snippets.

@hongsw
Created October 18, 2023 00:22
Show Gist options
  • Select an option

  • Save hongsw/69306fdef3dcff2ef2c9b97a89b47202 to your computer and use it in GitHub Desktop.

Select an option

Save hongsw/69306fdef3dcff2ef2c9b97a89b47202 to your computer and use it in GitHub Desktop.
divine-pomelo-8193
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('ListView Example')),
body: Column(
children: [
const Text("Hello Row 1"),
ListView.builder(
itemCount: 20,
itemBuilder: (context, index) {
return ListTile(title: Text('Item $index'));
},
),
],
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment