Created with <3 with dartpad.dev.
Created
October 18, 2023 00:22
-
-
Save hongsw/69306fdef3dcff2ef2c9b97a89b47202 to your computer and use it in GitHub Desktop.
divine-pomelo-8193
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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