Flutter 创建一个 Grid List

class MyDemo extends StatelessWidget {
  final title = 'Grid List';

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: title,
      home: new Scaffold(
        appBar: new AppBar(
          title: new Text(title),
        ),
        body: new GridView.count(
            crossAxisCount: 2,
          children: new List.generate(100, (index){
            return Center(
              child: new Text(
                'Item $index',
                style: Theme.of(context).textTheme.headline,
              ),
            );
          }),
        ),
      ),
    );
  }
}

8AB34A90-5F05-47B3-8773-C7C45E430E90