From e075988fe0b350a6b0a684c1d5420ce67800d942 Mon Sep 17 00:00:00 2001 From: Collin Jackson Date: Thu, 16 Jul 2015 17:36:25 -0700 Subject: [PATCH] Make example look more beautiful --- .../flutter/example/widgets/navigation.dart | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/flutter/example/widgets/navigation.dart b/packages/flutter/example/widgets/navigation.dart index ded7c42120..c6168314cf 100644 --- a/packages/flutter/example/widgets/navigation.dart +++ b/packages/flutter/example/widgets/navigation.dart @@ -21,8 +21,10 @@ List routes = [ new RaisedButton( child: new Text('START ADVENTURE'), onPressed: () => navigator.pushNamed('adventure') - ) - ], direction: FlexDirection.vertical, alignItems: FlexAlignItems.center) + )], + direction: FlexDirection.vertical, + justifyContent: FlexJustifyContent.center + ) ) ), new Route( @@ -39,8 +41,10 @@ List routes = [ new RaisedButton( child: new Text('GO TO DUNGEON'), onPressed: () => navigator.push(routes[2]) - ) - ], direction: FlexDirection.vertical) + )], + direction: FlexDirection.vertical, + justifyContent: FlexJustifyContent.center + ) ) ), new Route( @@ -51,10 +55,12 @@ List 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) + )], + direction: FlexDirection.vertical, + justifyContent: FlexJustifyContent.center + ) ) ) ];