feat: support double click to open task file (#516)

This commit is contained in:
Levi authored and GitHub committed 2024-05-02 13:22:57 +08:00
1 parent cea454b015
commit 54347f41b6
2 files changed
+29 -16

No files matched your search

@@ -89,7 +89,7 @@ class TaskFilesView extends GetView<TaskFilesController> {
return [
IconButton(
icon:
const Icon(Icons.play_circle),
const Icon(Icons.open_in_new),
onPressed: () {
launchUrl(Uri.parse(accessUrl),
webOnlyWindowName:
@@ -106,12 +106,7 @@ class TaskFilesView extends GetView<TaskFilesController> {
IconButton(
icon: const Icon(Icons.play_circle),
onPressed: () async {
print(filePath);
try {
await OpenFilex.open(filePath);
} catch (e) {
print(e);
}
await OpenFilex.open(filePath);
}),
IconButton(
icon: const Icon(Icons.share),