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,
right: 16.0,
child: new FittedBox(
fit: ImageFit.scaleDown,
alignment: FractionalOffset.centerLeft,
child: new Text(destination.title, child: new Text(destination.title,
style: titleStyle, style: titleStyle,
softWrap: false, ),
overflow: TextOverflow.ellipsis ),
) ),
)
] ]
) )
), ),
......
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