Skip to content

Commit

Permalink
fix dismissing tracks from queue, adjust progress slider color
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed Sep 24, 2023
1 parent 9db72f5 commit 0f39cf9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
9 changes: 9 additions & 0 deletions lib/components/PlayerScreen/progress_slider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@ class _BufferSlider extends StatelessWidget {
thumbShape: HiddenThumbComponentShape(),
trackShape: BufferTrackShape(),
trackHeight: 4.0,
inactiveTrackColor: IconTheme.of(context).color!.withOpacity(0.35),
// thumbColor: Colors.white,
// overlayColor: Colors.white,
activeTrackColor: IconTheme.of(context).color!.withOpacity(0.6),
// disabledThumbColor: Colors.white,
// activeTickMarkColor: Colors.white,
// valueIndicatorColor: Colors.white,
// inactiveTickMarkColor: Colors.white,
// disabledActiveTrackColor: Colors.white,
),
child: ExcludeSemantics(
child: Slider(
Expand Down
8 changes: 3 additions & 5 deletions lib/components/PlayerScreen/queue_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,10 @@ class _QueueListItemState extends State<QueueListItem> {
Widget build(BuildContext context) {
return Dismissible(
key: Key(widget.item.id),
onDismissed: (direction) {
setState(() {
_queueService.removeAtOffset(widget.indexOffset);
// widget.subqueue.removeAt(widget.listIndex);
});
onDismissed: (direction) async {
Vibrate.feedback(FeedbackType.impact);
await _queueService.removeAtOffset(widget.indexOffset);
setState(() {});
},
child: GestureDetector(
onLongPressStart: (details) => showSongMenu(details),
Expand Down

0 comments on commit 0f39cf9

Please sign in to comment.