diff --git a/myapp/lib/main.dart b/myapp/lib/main.dart index 037c16a..9bc96df 100644 --- a/myapp/lib/main.dart +++ b/myapp/lib/main.dart @@ -13,9 +13,22 @@ class Home extends StatelessWidget { centerTitle: true, backgroundColor: Colors.red[600] ), - body: Padding( - padding: EdgeInsets.all(20.0), - child: Text('hello, again') + body: Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + crossAxisAlignment: CrossAxisAlignment.end, + children: [ + Text('hello, world'), + FlatButton( + onPressed: () {}, + color: Colors.amber, + child: Text('click me'), + ), + Container( + color: Colors.cyan, + padding: EdgeInsets.all(30.0), + child: Text('inside container') + ), + ], ), floatingActionButton: FloatingActionButton( backgroundColor: Colors.red[600], @@ -23,13 +36,4 @@ class Home extends StatelessWidget { ), ); } -} - -// snippets for padding & margin - -// Container( -// margin: EdgeInsets.all(40.0), -// padding: EdgeInsets.all(30.0), -// color: Colors.grey[400], -// child: Text('hey, ninjas!'), -// ), \ No newline at end of file +} \ No newline at end of file