From 85ff078a59fd676bfcb0328e7a285b18604b8fb7 Mon Sep 17 00:00:00 2001 From: Tommy Chow Date: Sat, 26 Mar 2022 00:50:02 -0400 Subject: [PATCH] Limit stream card category to one line (#91) --- lib/screens/home/widgets/stream_card.dart | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/screens/home/widgets/stream_card.dart b/lib/screens/home/widgets/stream_card.dart index c0c90694..8bd8927b 100644 --- a/lib/screens/home/widgets/stream_card.dart +++ b/lib/screens/home/widgets/stream_card.dart @@ -135,11 +135,16 @@ class StreamCard extends StatelessWidget { const SizedBox(height: 5.0), if (showCategory) ...[ InkWell( - child: Text( - streamInfo.gameName, - style: TextStyle( - fontWeight: FontWeight.w300, - color: DefaultTextStyle.of(context).style.color?.withOpacity(0.8), + child: Tooltip( + message: streamInfo.gameName, + preferBelow: false, + child: Text( + streamInfo.gameName, + overflow: TextOverflow.ellipsis, + style: TextStyle( + fontWeight: FontWeight.w300, + color: DefaultTextStyle.of(context).style.color?.withOpacity(0.8), + ), ), ), onTap: () async {