mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-08-26 21:02:28 +02:00
fix(ui): align explicit badges with track titles
This commit is contained in:
@@ -99,11 +99,15 @@ class ExplicitTrackTitle extends StatelessWidget {
|
||||
TextSpan(text: title),
|
||||
if (explicit)
|
||||
WidgetSpan(
|
||||
alignment: PlaceholderAlignment.middle,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 6),
|
||||
child: ExplicitBadge(
|
||||
colorScheme: colorScheme ?? Theme.of(context).colorScheme,
|
||||
alignment: PlaceholderAlignment.baseline,
|
||||
baseline: TextBaseline.alphabetic,
|
||||
child: Transform.translate(
|
||||
offset: const Offset(0, -2),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 6),
|
||||
child: ExplicitBadge(
|
||||
colorScheme: colorScheme ?? Theme.of(context).colorScheme,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user