Skip to content

Commit

Permalink
lesson-11
Browse files Browse the repository at this point in the history
  • Loading branch information
iamshaunjp committed Aug 14, 2019
1 parent 662492d commit c6776b9
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions myapp/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,27 @@ 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: <Widget>[
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],
child: Text('click'),
),
);
}
}

// snippets for padding & margin

// Container(
// margin: EdgeInsets.all(40.0),
// padding: EdgeInsets.all(30.0),
// color: Colors.grey[400],
// child: Text('hey, ninjas!'),
// ),
}

1 comment on commit c6776b9

@Shafici-Mohamud
Copy link

@Shafici-Mohamud Shafici-Mohamud commented on c6776b9 Mar 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the best flutter tutorial please make a lot of tutorial

Please sign in to comment.