Clean up playlist entry index style

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-19 12:35:09 +01:00
parent 013f318df7
commit 6f90bb6fb5
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -64,9 +64,21 @@ class PlayerUIBody extends StatelessWidget {
leading: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(
"${i + 1}.",
style: Theme.of(context).textTheme.titleLarge,
Container(
width: 40,
height: 40,
padding: const EdgeInsets.all(3),
alignment: Alignment.center,
decoration: BoxDecoration(
color: item.current
? Theme.of(context).primaryColorLight
: Theme.of(context).primaryColorLight.withOpacity(0.5),
borderRadius: BorderRadius.circular(20),
),
child: Text(
"${i + 1}",
style: Theme.of(context).textTheme.titleMedium,
),
),
IconButton(
icon: playerState.isPlaying && item.current