Class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context){
return MaterialApp(title: "title", home : Scaffold(appBar:AppBar(title:Text(title),), body : GridView.count(
crossAxisCount : 2,
Children : List.generate(100, (index) {
return Center( child : Text ("Item index $index", style : Theme.of(context.textTheme.headline)))
}
) ) )
}
}
References:
https://flutter.io/cookbook/lists/grid-lists/
@override
Widget build(BuildContext context){
return MaterialApp(title: "title", home : Scaffold(appBar:AppBar(title:Text(title),), body : GridView.count(
crossAxisCount : 2,
Children : List.generate(100, (index) {
return Center( child : Text ("Item index $index", style : Theme.of(context.textTheme.headline)))
}
) ) )
}
}
References:
https://flutter.io/cookbook/lists/grid-lists/
No comments:
Post a Comment