Commit e075988f authored by Collin Jackson's avatar Collin Jackson

Make example look more beautiful

parent 38cbf9b5
...@@ -21,8 +21,10 @@ List<Route> routes = [ ...@@ -21,8 +21,10 @@ List<Route> routes = [
new RaisedButton( new RaisedButton(
child: new Text('START ADVENTURE'), child: new Text('START ADVENTURE'),
onPressed: () => navigator.pushNamed('adventure') onPressed: () => navigator.pushNamed('adventure')
) )],
], direction: FlexDirection.vertical, alignItems: FlexAlignItems.center) direction: FlexDirection.vertical,
justifyContent: FlexJustifyContent.center
)
) )
), ),
new Route( new Route(
...@@ -39,8 +41,10 @@ List<Route> routes = [ ...@@ -39,8 +41,10 @@ List<Route> routes = [
new RaisedButton( new RaisedButton(
child: new Text('GO TO DUNGEON'), child: new Text('GO TO DUNGEON'),
onPressed: () => navigator.push(routes[2]) onPressed: () => navigator.push(routes[2])
) )],
], direction: FlexDirection.vertical) direction: FlexDirection.vertical,
justifyContent: FlexJustifyContent.center
)
) )
), ),
new Route( new Route(
...@@ -51,10 +55,12 @@ List<Route> routes = [ ...@@ -51,10 +55,12 @@ List<Route> routes = [
child: new Flex([ child: new Flex([
new Text("Monster's Lair"), new Text("Monster's Lair"),
new RaisedButton( new RaisedButton(
child: new Text('NO WAIT! GO BACK!'), child: new Text('RUN!!!'),
onPressed: () => navigator.pop() onPressed: () => navigator.pop()
) )],
], direction: FlexDirection.vertical) direction: FlexDirection.vertical,
justifyContent: FlexJustifyContent.center
)
) )
) )
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment