Skip to content

Commit

Permalink
don't block for dismiss gestures
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed Nov 3, 2024
1 parent 6b58503 commit f477eb9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/components/AlbumScreen/track_list_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class TrackListTile extends StatelessWidget {
Future<bool> trackListTileConfirmDismiss(DismissDirection direction) async {
final queueService = GetIt.instance<QueueService>();
if (FinampSettingsHelper.finampSettings.swipeInsertQueueNext) {
await queueService.addToNextUp(
unawaited(queueService.addToNextUp(
items: [item],
source: QueueItemSource(
type: QueueItemSourceType.nextUp,
Expand All @@ -195,9 +195,9 @@ class TrackListTile extends StatelessWidget {
pretranslatedName: AppLocalizations.of(context)!.queue),
id: parentItem?.id ?? "",
item: parentItem,
));
)));
} else {
await queueService.addToQueue(
unawaited(queueService.addToQueue(
items: [item],
source: QueueItemSource(
type: QueueItemSourceType.queue,
Expand All @@ -206,7 +206,7 @@ class TrackListTile extends StatelessWidget {
pretranslatedName: AppLocalizations.of(context)!.queue),
id: parentItem?.id ?? "",
item: parentItem,
));
)));
}

GlobalSnackbar.message(
Expand Down Expand Up @@ -333,7 +333,7 @@ class QueueListTile extends StatelessWidget {
Future<bool> queueListTileConfirmDismiss(direction) async {
final queueService = GetIt.instance<QueueService>();
FeedbackHelper.feedback(FeedbackType.impact);
await queueService.removeAtOffset(indexOffset);
unawaited(queueService.removeAtOffset(indexOffset));
return true;
}

Expand Down

0 comments on commit f477eb9

Please sign in to comment.