fix(player_queue): large clear button and macos exception

This commit is contained in:
Kingkor Roy Tirtho 2023-02-06 10:16:15 +06:00
parent d68d150d3f
commit 0e43504e18

View File

@ -77,24 +77,32 @@ class PlayerQueue extends HookConsumerWidget {
borderRadius: BorderRadius.circular(20), borderRadius: BorderRadius.circular(20),
), ),
), ),
PlatformAppBar( Row(
title: children: [
PlatformText.subheading("${tracks.length} tracks in Queue"), const SizedBox(width: 10),
backgroundColor: Colors.transparent, PlatformText(
automaticallyImplyLeading: false, "${tracks.length} tracks in Queue",
actions: [ style: TextStyle(
color: headlineColor,
fontWeight: FontWeight.bold,
fontSize: 18,
),
),
const Spacer(),
PlatformFilledButton( PlatformFilledButton(
style: ButtonStyle( style: ButtonStyle(
backgroundColor: MaterialStatePropertyAll( backgroundColor: MaterialStatePropertyAll(
PlatformTheme.of(context) PlatformTheme.of(context)
.scaffoldBackgroundColor .scaffoldBackgroundColor
?.withOpacity(0.5)), ?.withOpacity(0.5)),
foregroundColor: MaterialStatePropertyAll(
PlatformTheme.of(context).textTheme?.subheading?.color),
), ),
child: Row( child: Row(
children: const [ children: const [
Icon(SpotubeIcons.playlistRemove), Icon(SpotubeIcons.playlistRemove),
SizedBox(width: 5), SizedBox(width: 5),
PlatformText("Clear All"), Text("Clear All"),
], ],
), ),
onPressed: () { onPressed: () {
@ -102,6 +110,7 @@ class PlayerQueue extends HookConsumerWidget {
Navigator.of(context).pop(); Navigator.of(context).pop();
}, },
), ),
const SizedBox(width: 10),
], ],
), ),
const SizedBox(height: 10), const SizedBox(height: 10),