Commit 49f5fbb8 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Tweaked the appaearance of the cards demo (#8964)

parent 912279bf
......@@ -40,7 +40,7 @@ class TravelDestinationItem extends StatelessWidget {
assert(destination != null && destination.isValid);
}
static final double height = 328.0;
static final double height = 366.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 */ },
),
],
......
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