Commit a8bf594e authored by Hans Muller's avatar Hans Muller Committed by GitHub

Scale card demo titles if they will not fit (#6462)

parent aa12716d
...@@ -70,12 +70,15 @@ class TravelDestinationItem extends StatelessWidget { ...@@ -70,12 +70,15 @@ class TravelDestinationItem extends StatelessWidget {
new Positioned( new Positioned(
bottom: 16.0, bottom: 16.0,
left: 16.0, left: 16.0,
child: new Text(destination.title, right: 16.0,
style: titleStyle, child: new FittedBox(
softWrap: false, fit: ImageFit.scaleDown,
overflow: TextOverflow.ellipsis alignment: FractionalOffset.centerLeft,
) child: new Text(destination.title,
) style: titleStyle,
),
),
),
] ]
) )
), ),
......
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