SHARE
TWEET

Untitled

a guest Sep 16th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_app/main1.dart';
  3.  
  4. /**
  5.  *  电影海报 2019年9月5日15:40:45
  6.  */
  7. void main() => runApp(MyApp());
  8.  
  9. class MyApp extends StatelessWidget {
  10.   @override
  11.   Widget build(BuildContext context) {
  12.     // TODO: implement build
  13.  
  14.     return MaterialApp(
  15.       title: '电影海报实例',
  16.       home: Scaffold(
  17.         appBar: new AppBar(
  18.           title: Text('海报实例'),
  19.         ),
  20.         body: GridView.count(
  21.           crossAxisCount: 3,// 列数
  22.           padding: EdgeInsets.all(10.0),
  23.           crossAxisSpacing: 10.0,
  24.         ),
  25.       ),
  26.     );
  27.   }
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top