Skip to content

Commit a4ed97c

Browse files
committed
finished iamshaunjp#11
1 parent 5240a7a commit a4ed97c

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

myapp/lib/main.dart

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,22 @@ class Home extends StatelessWidget {
1616
centerTitle: true,
1717
backgroundColor: Colors.red,
1818
),
19-
body: Center(
20-
child: Image.asset('assets/snowboarding_04.jpg'),
19+
body: Row(
20+
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
21+
crossAxisAlignment: CrossAxisAlignment.center,
22+
children: <Widget>[
23+
Text('hello, world'),
24+
FlatButton(
25+
onPressed: (){},
26+
color: Colors.amber,
27+
child: Text('click me'),
28+
),
29+
Container(
30+
color: Colors.cyan,
31+
padding: EdgeInsets.all(30.0),
32+
child: Text('inside container'),
33+
),
34+
],
2135
),
2236
floatingActionButton: FloatingActionButton(
2337
onPressed: () {},

0 commit comments

Comments
 (0)