1
0
mirror of https://github.com/flutter/samples.git synced 2026-03-22 04:17:50 +00:00

Don't overflow cards text (#261)

This commit is contained in:
Pierre-Louis
2020-01-24 19:01:12 +01:00
committed by GitHub
parent 9f0a977d80
commit 9575601afb

View File

@@ -771,13 +771,13 @@ class _CarouselCard extends StatelessWidget {
title,
style: textTheme.caption.apply(color: textColor),
maxLines: 3,
overflow: TextOverflow.ellipsis,
overflow: TextOverflow.visible,
),
Text(
subtitle,
style: textTheme.overline.apply(color: textColor),
maxLines: 5,
overflow: TextOverflow.ellipsis,
overflow: TextOverflow.visible,
),
],
),