Skip to content

Instantly share code, notes, and snippets.

@obadajasm
Created May 2, 2020 01:42
Show Gist options
  • Save obadajasm/13ccd5e509b5d228fb007d2665a0832d to your computer and use it in GitHub Desktop.
Save obadajasm/13ccd5e509b5d228fb007d2665a0832d to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: MyWidget(),
),
),
);
}
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ListView.builder(
itemCount:999,
itemBuilder: (BuildContext ctxt, int index) {
print(index.toString());
return Container(height:100,child:Text(index.toString()));
} );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment