mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 16:41:19 +00:00
fix
This commit is contained in:
parent
5ad903da8e
commit
f0458c4f6c
@ -103,7 +103,7 @@ class CachedCustomResource extends StatelessWidget {
|
|||||||
|
|
||||||
Future<File?> _checkIfLocalResourceExists(TabletAppContext tabletAppContext) async {
|
Future<File?> _checkIfLocalResourceExists(TabletAppContext tabletAppContext) async {
|
||||||
try {
|
try {
|
||||||
Directory? appDocumentsDirectory = Directory? appDocumentsDirectory = Platform.isIOS ? await getApplicationSupportDirectory() : await getDownloadsDirectory();
|
Directory? appDocumentsDirectory = Platform.isIOS ? await getApplicationSupportDirectory() : await getDownloadsDirectory();
|
||||||
String localPath = appDocumentsDirectory!.path;
|
String localPath = appDocumentsDirectory!.path;
|
||||||
Directory configurationDirectory = Directory('$localPath/${tabletAppContext.configuration!.id}');
|
Directory configurationDirectory = Directory('$localPath/${tabletAppContext.configuration!.id}');
|
||||||
List<FileSystemEntity> fileList = configurationDirectory.listSync();
|
List<FileSystemEntity> fileList = configurationDirectory.listSync();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user