clean up tooltips
This commit is contained in:
parent
a2d30ec086
commit
29c84858a0
2 changed files with 12 additions and 12 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue