Skip to content

Commit 18fa8ea

Browse files
authored
Update Vertical Buttons.dart
1 parent 5db049b commit 18fa8ea

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

Vertical Buttons.dart

+5-12
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,15 @@ class UserOptions extends StatefulWidget {
2222

2323
class UserOptionsState extends State<UserOptions> {
2424
@override
25-
Widget build(BuildContext context) {
26-
// return new Container(
27-
// child: new Column(
28-
// children: <Widget>[
29-
// new Text('data'),
30-
// new Text('data')
31-
// ],
32-
// ),
33-
// ); for 2 buttons vertically without Mat. UI
34-
25+
Widget build(BuildContext context) {
3526
return new Scaffold(
3627
appBar: new AppBar(
3728
title: new Text('data'),
3829
),
39-
body: new Container(
30+
body: new Center(
31+
child: new Container(
4032
child: new Column(
33+
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
4134
children: <Widget>[
4235
new Builder(
4336
builder: (BuildContext context) {
@@ -65,7 +58,7 @@ class UserOptionsState extends State<UserOptions> {
6558
)
6659
],
6760
),
68-
),
61+
)),
6962
);
7063
}
7164
}

0 commit comments

Comments
 (0)