Add symbol for offline available sheets
This commit is contained in:
@@ -254,6 +254,13 @@ class ApiClient {
|
||||
return cachedFile;
|
||||
}
|
||||
|
||||
Future<bool> isPdfFileCached(String sheetUuid) async {
|
||||
final cacheDir = await getTemporaryDirectory();
|
||||
final cachedFile = File('${cacheDir.path}/$sheetUuid.pdf');
|
||||
|
||||
return await cachedFile.exists();
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Annotation Operations
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user