Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
e075988f
Commit
e075988f
authored
Jul 17, 2015
by
Collin Jackson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make example look more beautiful
parent
38cbf9b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
navigation.dart
packages/flutter/example/widgets/navigation.dart
+13
-7
No files found.
packages/flutter/example/widgets/navigation.dart
View file @
e075988f
...
@@ -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
,
justifyContent:
FlexJustifyContent
.
center
)
)
],
direction:
FlexDirection
.
vertical
,
alignItems:
FlexAlignItems
.
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
,
justifyContent:
FlexJustifyContent
.
center
)
)
],
direction:
FlexDirection
.
vertical
)
)
)
),
),
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
,
justifyContent:
FlexJustifyContent
.
center
)
)
],
direction:
FlexDirection
.
vertical
)
)
)
)
)
];
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment