feat: reuse fetcher (#71)

This commit is contained in:
Li Wei authored and GitHub committed 2023-02-06 20:58:13 +08:00
1 parent 17cb59c606
commit 1a3c8c026b
36 files changed
+475 -297

No files matched your search

+3 -3
View File
@@ -25,7 +25,7 @@ class Item extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: [
ListTile(
title: Text(task.res.name),
title: Text(task.meta.res.name),
leading: const Icon(Icons.insert_drive_file),
),
Row(
@@ -63,8 +63,8 @@ class Item extends StatelessWidget {
list.add(IconButton(
icon: const Icon(Icons.folder_open),
onPressed: () async {
final file = File(Util.buildAbsPath(task.opts.path,
task.res.files[0].path, task.res.files[0].name));
final file = File(Util.buildAbsPath(task.meta.opts.path,
task.meta.res.files[0].path, task.meta.res.files[0].name));
await launchUrl(file.parent.uri);
},
));