Skip to content

Commit

Permalink
chore: remove reference to background_downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Jun 10, 2023
1 parent 7d23bee commit 8be67d0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/components/library/user_downloads.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:auto_size_text/auto_size_text.dart';
import 'package:background_downloader/background_downloader.dart';
// import 'package:background_downloader/background_downloader.dart';
import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
Expand Down Expand Up @@ -69,8 +69,10 @@ class UserDownloads extends HookConsumerWidget {
// FileDownloader().database.recordForId(track.id!),
);

final hasFailed = failedTaskStream.hasData ||
taskItSelf.data?.status == TaskStatus.failed;
final hasFailed = failedTaskStream
.hasData /* ||
taskItSelf.data?.status == TaskStatus.failed */
;

return ListTile(
title: Text(track.name ?? ''),
Expand Down

0 comments on commit 8be67d0

Please sign in to comment.