diff --git a/lib/screens/channel/video/video_bar.dart b/lib/screens/channel/video/video_bar.dart index f2a5e031..17b160ad 100644 --- a/lib/screens/channel/video/video_bar.dart +++ b/lib/screens/channel/video/video_bar.dart @@ -48,7 +48,7 @@ class VideoBar extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Tooltip( - message: 'Streamer: $streamerName', + message: streamerName, showDuration: const Duration(seconds: 3), child: Text( streamerName, @@ -62,7 +62,7 @@ class VideoBar extends StatelessWidget { ), const SizedBox(height: 2), Tooltip( - message: 'Title: ${streamInfo.title.trim()}', + message: streamTitle, showDuration: const Duration(seconds: 5), child: Text( streamTitle, @@ -91,8 +91,7 @@ class VideoBar extends StatelessWidget { ) : null, child: Tooltip( - message: - 'Category: ${streamInfo.gameName.isNotEmpty ? streamInfo.gameName : 'None'}', + message: category, showDuration: const Duration(seconds: 3), child: Text( category, diff --git a/lib/screens/home/stream_list/stream_card.dart b/lib/screens/home/stream_list/stream_card.dart index 847da42a..1e73d859 100644 --- a/lib/screens/home/stream_list/stream_card.dart +++ b/lib/screens/home/stream_list/stream_card.dart @@ -68,6 +68,10 @@ class StreamCard extends StatelessWidget { final streamerName = getReadableName(streamInfo.userName, streamInfo.userLogin); + final streamTitle = streamInfo.title.trim(); + final category = + streamInfo.gameName.isNotEmpty ? streamInfo.gameName : 'No Category'; + const subFontSize = 14.0; final fontColor = DefaultTextStyle.of(context).style.color; @@ -126,7 +130,7 @@ class StreamCard extends StatelessWidget { const SizedBox(width: 4), Flexible( child: Tooltip( - message: 'Streamer: $streamerName', + message: streamerName, preferBelow: false, child: Text( streamerName, @@ -143,10 +147,10 @@ class StreamCard extends StatelessWidget { ), const SizedBox(height: 2), Tooltip( - message: 'Title: ${streamInfo.title.trim()}', + message: streamTitle, preferBelow: false, child: Text( - streamInfo.title.trim(), + streamTitle, overflow: TextOverflow.ellipsis, style: TextStyle( fontSize: subFontSize, @@ -168,13 +172,10 @@ class StreamCard extends StatelessWidget { ) : null, child: Tooltip( - message: - 'Category: ${streamInfo.gameName.isNotEmpty ? streamInfo.gameName : 'None'}', + message: category, preferBelow: false, child: Text( - streamInfo.gameName.isNotEmpty - ? streamInfo.gameName - : 'No Category', + category, overflow: TextOverflow.ellipsis, style: TextStyle( fontSize: subFontSize,