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
310412fd
Commit
310412fd
authored
Jul 21, 2015
by
Hixie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor style changes around demo cards.
parent
f3e07210
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
main.dart
packages/flutter/example/demo_launcher/lib/main.dart
+16
-8
No files found.
packages/flutter/example/demo_launcher/lib/main.dart
View file @
310412fd
...
@@ -53,13 +53,21 @@ void launch(String relativeUrl, String bundle) {
...
@@ -53,13 +53,21 @@ void launch(String relativeUrl, String bundle) {
}
}
class
SkyDemo
{
class
SkyDemo
{
String
name
;
SkyDemo
({
String
href
;
name
,
String
bundle
;
this
.
href
,
String
description
;
this
.
bundle
,
typography
.
TextTheme
textTheme
;
this
.
description
,
BoxDecoration
decoration
;
this
.
textTheme
,
SkyDemo
({
this
.
name
,
this
.
href
,
this
.
bundle
,
this
.
description
,
this
.
textTheme
,
this
.
decoration
});
this
.
decoration
})
:
name
=
name
,
key
=
name
;
final
String
name
;
final
String
key
;
final
String
href
;
final
String
bundle
;
final
String
description
;
final
typography
.
TextTheme
textTheme
;
final
BoxDecoration
decoration
;
}
}
List
<
SkyDemo
>
demos
=
[
List
<
SkyDemo
>
demos
=
[
...
@@ -162,7 +170,7 @@ class DemoList extends Component {
...
@@ -162,7 +170,7 @@ class DemoList extends Component {
Widget
buildDemo
(
SkyDemo
demo
)
{
Widget
buildDemo
(
SkyDemo
demo
)
{
return
new
Listener
(
return
new
Listener
(
key:
demo
.
name
,
key:
demo
.
key
,
onGestureTap:
(
_
)
=>
launch
(
demo
.
href
,
demo
.
bundle
),
onGestureTap:
(
_
)
=>
launch
(
demo
.
href
,
demo
.
bundle
),
child:
new
Container
(
child:
new
Container
(
height:
kCardHeight
,
height:
kCardHeight
,
...
...
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