redesign app phase 3
This commit is contained in:
@@ -6,6 +6,7 @@ import 'package:finamp/l10n/app_localizations.dart';
|
||||
import 'package:get_it/get_it.dart';
|
||||
|
||||
import '../../services/download_update_stream.dart';
|
||||
import '../../services/download_support.dart';
|
||||
import '../error_snackbar.dart';
|
||||
|
||||
const double downloadsOverviewCardLoadingHeight = 120;
|
||||
@@ -39,7 +40,9 @@ class _DownloadsOverviewState extends State<DownloadsOverview> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_downloadsOverviewFuture = FlutterDownloader.loadTasks();
|
||||
_downloadsOverviewFuture = isDownloaderSupported
|
||||
? FlutterDownloader.loadTasks()
|
||||
: Future.value([]);
|
||||
|
||||
// Like in DownloadedIndicator, we use our own listener instead of a
|
||||
// StreamBuilder to ensure that we capture all events.
|
||||
|
||||
Reference in New Issue
Block a user