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();