Created
September 5, 2019 07:47
-
-
Save 330132662/a086994df705c958f577d9b66b46b063 to your computer and use it in GitHub Desktop.
This file contains 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'; | |
import 'package:flutter_app/main1.dart'; | |
/** | |
* 电影海报 2019年9月5日15:40:45 | |
*/ | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
// TODO: implement build | |
return MaterialApp( | |
title: '电影海报实例', | |
home: Scaffold( | |
appBar: new AppBar( | |
title: Text('海报实例'), | |
), | |
body: GridView.count( | |
crossAxisCount: 3,// 列数 | |
padding: EdgeInsets.all(10.0), | |
crossAxisSpacing: 10.0, | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment