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
49f5fbb8
Commit
49f5fbb8
authored
Mar 24, 2017
by
Hans Muller
Committed by
GitHub
Mar 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaked the appaearance of the cards demo (#8964)
parent
912279bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
cards_demo.dart
examples/flutter_gallery/lib/demo/material/cards_demo.dart
+12
-3
No files found.
examples/flutter_gallery/lib/demo/material/cards_demo.dart
View file @
49f5fbb8
...
...
@@ -40,7 +40,7 @@ class TravelDestinationItem extends StatelessWidget {
assert
(
destination
!=
null
&&
destination
.
isValid
);
}
static
final
double
height
=
3
28
.0
;
static
final
double
height
=
3
66
.0
;
final
TravelDestination
destination
;
@override
...
...
@@ -49,7 +49,8 @@ class TravelDestinationItem extends StatelessWidget {
final
TextStyle
titleStyle
=
theme
.
textTheme
.
headline
.
copyWith
(
color:
Colors
.
white
);
final
TextStyle
descriptionStyle
=
theme
.
textTheme
.
subhead
;
return
new
SizedBox
(
return
new
Container
(
padding:
const
EdgeInsets
.
all
(
8.0
),
height:
height
,
child:
new
Card
(
child:
new
Column
(
...
...
@@ -93,7 +94,13 @@ class TravelDestinationItem extends StatelessWidget {
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
// three line description
new
Text
(
destination
.
description
[
0
]),
new
Padding
(
padding:
const
EdgeInsets
.
only
(
bottom:
8.0
),
child:
new
Text
(
destination
.
description
[
0
],
style:
descriptionStyle
.
copyWith
(
color:
Colors
.
black54
),
),
),
new
Text
(
destination
.
description
[
1
]),
new
Text
(
destination
.
description
[
2
]),
],
...
...
@@ -109,10 +116,12 @@ class TravelDestinationItem extends StatelessWidget {
children:
<
Widget
>[
new
FlatButton
(
child:
new
Text
(
'SHARE'
),
textColor:
Colors
.
amber
.
shade500
,
onPressed:
()
{
/* do nothing */
},
),
new
FlatButton
(
child:
new
Text
(
'EXPLORE'
),
textColor:
Colors
.
amber
.
shade500
,
onPressed:
()
{
/* do nothing */
},
),
],
...
...
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