From 0e43504e18d2315fb1b7975b67bd2c596cbfb1bc Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Mon, 6 Feb 2023 10:16:15 +0600 Subject: [PATCH] fix(player_queue): large clear button and macos exception --- lib/components/player/player_queue.dart | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/lib/components/player/player_queue.dart b/lib/components/player/player_queue.dart index f3603330..c72967fb 100644 --- a/lib/components/player/player_queue.dart +++ b/lib/components/player/player_queue.dart @@ -77,24 +77,32 @@ class PlayerQueue extends HookConsumerWidget { borderRadius: BorderRadius.circular(20), ), ), - PlatformAppBar( - title: - PlatformText.subheading("${tracks.length} tracks in Queue"), - backgroundColor: Colors.transparent, - automaticallyImplyLeading: false, - actions: [ + Row( + children: [ + const SizedBox(width: 10), + PlatformText( + "${tracks.length} tracks in Queue", + style: TextStyle( + color: headlineColor, + fontWeight: FontWeight.bold, + fontSize: 18, + ), + ), + const Spacer(), PlatformFilledButton( style: ButtonStyle( backgroundColor: MaterialStatePropertyAll( PlatformTheme.of(context) .scaffoldBackgroundColor ?.withOpacity(0.5)), + foregroundColor: MaterialStatePropertyAll( + PlatformTheme.of(context).textTheme?.subheading?.color), ), child: Row( children: const [ Icon(SpotubeIcons.playlistRemove), SizedBox(width: 5), - PlatformText("Clear All"), + Text("Clear All"), ], ), onPressed: () { @@ -102,6 +110,7 @@ class PlayerQueue extends HookConsumerWidget { Navigator.of(context).pop(); }, ), + const SizedBox(width: 10), ], ), const SizedBox(height: 10),