Skip to content

Commit dd1932f

Browse files
committed
lesson-5
1 parent 47d00cf commit dd1932f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

myapp/lib/main.dart

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
import 'package:flutter/material.dart';
22

33
void main() => runApp(MaterialApp(
4-
home: Text('hey ninjas!!')
4+
home: Scaffold(
5+
appBar: AppBar(
6+
title: Text('my first app'),
7+
centerTitle: true,
8+
),
9+
body: Center(
10+
child: Text('hello, ninjas!'),
11+
),
12+
floatingActionButton: FloatingActionButton(
13+
child: Text('click'),
14+
),
15+
),
516
));
617

718

0 commit comments

Comments
 (0)