From 6f90bb6fb57107668ea55e885289c52a8d79bab0 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 19 Dec 2024 12:35:09 +0100 Subject: [PATCH] Clean up playlist entry index style --- lib/player_ui/body.dart | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/lib/player_ui/body.dart b/lib/player_ui/body.dart index 3905204..efb3069 100644 --- a/lib/player_ui/body.dart +++ b/lib/player_ui/body.dart @@ -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