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,33 +190,46 @@ class PlaybuttonCard extends HookWidget {
|
|||||||
);
|
);
|
||||||
|
|
||||||
final list = Row(
|
final list = Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
// thumbnail of the playlist
|
// thumbnail of the playlist
|
||||||
|
Flexible(
|
||||||
|
child: Row(
|
||||||
|
children: [
|
||||||
image,
|
image,
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
Column(
|
Flexible(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
child: RichText(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
overflow: TextOverflow.ellipsis,
|
||||||
|
text: TextSpan(
|
||||||
children: [
|
children: [
|
||||||
PlatformText(
|
TextSpan(
|
||||||
title,
|
text: title,
|
||||||
style: const TextStyle(fontWeight: FontWeight.bold),
|
style: PlatformTextTheme.of(context)
|
||||||
|
.body
|
||||||
|
?.copyWith(fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 5),
|
|
||||||
if (description != null)
|
if (description != null)
|
||||||
PlatformText(
|
TextSpan(
|
||||||
description!,
|
text: '\n$description',
|
||||||
overflow: TextOverflow.fade,
|
|
||||||
style: PlatformTextTheme.of(context).caption,
|
style: PlatformTextTheme.of(context).caption,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const Spacer(),
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
addToQueueButton,
|
addToQueueButton,
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
playButton,
|
playButton,
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
return Ink(
|
return Ink(
|
||||||
|
Loading…
Reference in New Issue
Block a user