mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-08-06 14:51:08 +08:00
23 lines
509 B
Dart
23 lines
509 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
void main() {
|
|
runApp(new MaterialApp(
|
|
// Title
|
|
title: "Simple Material App",
|
|
// Home
|
|
home: new Scaffold(
|
|
// Appbar
|
|
appBar: new AppBar(
|
|
// Title
|
|
title: new Text("Simple Material App"),
|
|
),
|
|
// Body
|
|
body: new Container(
|
|
// Center the content
|
|
child: new Center(
|
|
// Add Text
|
|
child: new Text("Hello World!"),
|
|
),
|
|
),
|
|
)));
|
|
} |