Skip to content

Commit

Permalink
fix(player_queue): large clear button and macos exception
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Feb 6, 2023
1 parent d68d150 commit 0e43504
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions lib/components/player/player_queue.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,31 +77,40 @@ 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: () {
playlistNotifier.stop();
Navigator.of(context).pop();
},
),
const SizedBox(width: 10),
],
),
const SizedBox(height: 10),
Expand Down

0 comments on commit 0e43504

Please sign in to comment.