mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-05-18 05:25:52 +08:00
24 lines
629 B
Dart
24 lines
629 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:grid_layout/gridview.dart';
|
|
|
|
void main() => runApp(MyApp());
|
|
|
|
class MyApp extends StatelessWidget {
|
|
final MyGridView myGridView = MyGridView();
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
debugShowCheckedModeBanner: false,
|
|
home: Scaffold(
|
|
appBar: AppBar(
|
|
// Here we take the value from the MyHomePage object that was created by
|
|
// the App.build method, and use it to set our appbar title.
|
|
title: Text("GridView Example"),
|
|
),
|
|
body: myGridView.build(),
|
|
),
|
|
);
|
|
}
|
|
}
|