From f0458c4f6c304530b1ef0d12a6f4e31252bb80a0 Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Thu, 8 Feb 2024 16:12:05 +0100 Subject: [PATCH] fix --- lib/Components/cached_custom_resource.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Components/cached_custom_resource.dart b/lib/Components/cached_custom_resource.dart index 618aaff..d038962 100644 --- a/lib/Components/cached_custom_resource.dart +++ b/lib/Components/cached_custom_resource.dart @@ -103,7 +103,7 @@ class CachedCustomResource extends StatelessWidget { Future _checkIfLocalResourceExists(TabletAppContext tabletAppContext) async { try { - Directory? appDocumentsDirectory = Directory? appDocumentsDirectory = Platform.isIOS ? await getApplicationSupportDirectory() : await getDownloadsDirectory(); + Directory? appDocumentsDirectory = Platform.isIOS ? await getApplicationSupportDirectory() : await getDownloadsDirectory(); String localPath = appDocumentsDirectory!.path; Directory configurationDirectory = Directory('$localPath/${tabletAppContext.configuration!.id}'); List fileList = configurationDirectory.listSync();