mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-14 08:25:16 +00:00
fix(playbutton_card): title text overflow
This commit is contained in:
parent
b327ffb108
commit
39ee0a92a8
@ -190,32 +190,45 @@ class PlaybuttonCard extends HookWidget {
|
||||
);
|
||||
|
||||
final list = Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
// thumbnail of the playlist
|
||||
image,
|
||||
const SizedBox(width: 10),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
PlatformText(
|
||||
title,
|
||||
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||
),
|
||||
const SizedBox(height: 5),
|
||||
if (description != null)
|
||||
PlatformText(
|
||||
description!,
|
||||
overflow: TextOverflow.fade,
|
||||
style: PlatformTextTheme.of(context).caption,
|
||||
Flexible(
|
||||
child: Row(
|
||||
children: [
|
||||
image,
|
||||
const SizedBox(width: 10),
|
||||
Flexible(
|
||||
child: RichText(
|
||||
overflow: TextOverflow.ellipsis,
|
||||
text: TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: title,
|
||||
style: PlatformTextTheme.of(context)
|
||||
.body
|
||||
?.copyWith(fontWeight: FontWeight.bold),
|
||||
),
|
||||
if (description != null)
|
||||
TextSpan(
|
||||
text: '\n$description',
|
||||
style: PlatformTextTheme.of(context).caption,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
addToQueueButton,
|
||||
const SizedBox(width: 10),
|
||||
playButton,
|
||||
const SizedBox(width: 10),
|
||||
],
|
||||
),
|
||||
const Spacer(),
|
||||
addToQueueButton,
|
||||
const SizedBox(width: 10),
|
||||
playButton,
|
||||
const SizedBox(width: 10),
|
||||
],
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user