mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
Scale card demo titles if they will not fit (#6462)
This commit is contained in:
parent
aa12716d44
commit
a8bf594e59
|
@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
]
|
||||
)
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue