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