Skip to content

Instantly share code, notes, and snippets.

@330132662
Created September 5, 2019 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 330132662/a086994df705c958f577d9b66b46b063 to your computer and use it in GitHub Desktop.
Save 330132662/a086994df705c958f577d9b66b46b063 to your computer and use it in GitHub Desktop.
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