1
0
mirror of https://github.com/nisrulz/flutter-examples.git synced 2025-11-08 20:50:04 +00:00

implemented: grid_layout

This commit is contained in:
Nishant Srivastava
2018-02-10 19:50:17 +05:30
parent b2c80a698e
commit 354d387278
9 changed files with 49 additions and 3 deletions

View File

@@ -1,8 +1,11 @@
import 'package:flutter/material.dart';
import 'package:grid_layout/gridview.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
final MyGridView myGridView = new MyGridView();
@override
Widget build(BuildContext context) {
return new MaterialApp(
@@ -12,9 +15,7 @@ class MyApp extends StatelessWidget {
// the App.build method, and use it to set our appbar title.
title: new Text("GridView Example"),
),
body: new Container(
child: new Center(child: new Text("Hello World")),
),
body: myGridView.build(),
),
);
}