Skip to content

Commit d4725c8

Browse files
committed
Columns and rows done
1 parent 1d5adf9 commit d4725c8

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

lib/main.dart

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,22 @@ class Home extends StatelessWidget {
1414
title: Text('My second application'),
1515
centerTitle: true,
1616
),
17-
body: Padding(
18-
child: Text('All over the world'),
19-
padding: EdgeInsets.all(29.0),
17+
body: Column(
18+
children: [
19+
Text('Row your boat'),
20+
FlatButton(
21+
onPressed: () {},
22+
child: Text('Click it!'),
23+
color: Colors.orange,
24+
),
25+
Container(
26+
color: Colors.cyan,
27+
padding: EdgeInsets.all(30.0),
28+
child: Text('Encapsulated'),
29+
)
30+
],
31+
mainAxisAlignment: MainAxisAlignment.center,
32+
crossAxisAlignment: CrossAxisAlignment.stretch,
2033
),
2134
floatingActionButton: FloatingActionButton(
2235
child: Text('Click'),

0 commit comments

Comments
 (0)