Commit e075988f authored by Collin Jackson's avatar Collin Jackson

Make example look more beautiful

parent 38cbf9b5
......@@ -21,8 +21,10 @@ List<Route> routes = [
new RaisedButton(
child: new Text('START ADVENTURE'),
onPressed: () => navigator.pushNamed('adventure')
)],
direction: FlexDirection.vertical,
justifyContent: FlexJustifyContent.center
)
], direction: FlexDirection.vertical, alignItems: FlexAlignItems.center)
)
),
new Route(
......@@ -39,8 +41,10 @@ List<Route> routes = [
new RaisedButton(
child: new Text('GO TO DUNGEON'),
onPressed: () => navigator.push(routes[2])
)],
direction: FlexDirection.vertical,
justifyContent: FlexJustifyContent.center
)
], direction: FlexDirection.vertical)
)
),
new Route(
......@@ -51,10 +55,12 @@ List<Route> routes = [
child: new Flex([
new Text("Monster's Lair"),
new RaisedButton(
child: new Text('NO WAIT! GO BACK!'),
child: new Text('RUN!!!'),
onPressed: () => navigator.pop()
)],
direction: FlexDirection.vertical,
justifyContent: FlexJustifyContent.center
)
], direction: FlexDirection.vertical)
)
)
];
......
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