mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-11-08 12:39:17 +00:00
22 lines
584 B
Dart
22 lines
584 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
void main() => runApp(new MyApp());
|
|
|
|
class MyApp extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return new MaterialApp(
|
|
home: new Scaffold(
|
|
appBar: new 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: new Text("GridView Example"),
|
|
),
|
|
body: new Container(
|
|
child: new Center(child: new Text("Hello World")),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|