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 {
new Positioned(
bottom: 16.0,
left: 16.0,
child: new Text(destination.title,
style: titleStyle,
softWrap: false,
overflow: TextOverflow.ellipsis
)
)
right: 16.0,
child: new FittedBox(
fit: ImageFit.scaleDown,
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