joaopaulofcc

Untitled

Sep 26th, 2020
1,078
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import "package:flutter/material.dart";
  2.  
  3. void main() => runApp(MyApp());
  4.  
  5. class MyApp extends StatelessWidget  {
  6.  
  7.   @override
  8.   Widget build(BuildContext inContext) {
  9.     return MaterialApp(home : Scaffold(
  10.       body : GridView.count(
  11.         padding : EdgeInsets.all(4.0),
  12.         crossAxisCount : 4, childAspectRatio : 1.0,
  13.         mainAxisSpacing : 4.0, crossAxisSpacing : 4.0,
  14.         children: [
  15.           GridTile(child : new FlutterLogo()),
  16.           GridTile(child : new FlutterLogo()),
  17.           GridTile(child : new FlutterLogo()),
  18.           GridTile(child : new FlutterLogo()),
  19.           GridTile(child : new FlutterLogo()),
  20.           GridTile(child : new FlutterLogo()),
  21.           GridTile(child : new FlutterLogo()),
  22.           GridTile(child : new FlutterLogo()),
  23.           GridTile(child : new FlutterLogo())
  24.         ]
  25.       )
  26.     ));
  27.   }
  28.  
  29. }
  30.  
RAW Paste Data