diff --git a/example/lib/packages/path_provider/model.dart b/example/lib/packages/path_provider/model.dart index 577b841..ab80c46 100644 --- a/example/lib/packages/path_provider/model.dart +++ b/example/lib/packages/path_provider/model.dart @@ -43,6 +43,12 @@ class PathProviderModel extends Model { return null; } + +/// Directory location where user-specific non-essential (cached) data should be written. + Future getApplicationCacheDirectory() async { + return getApplicationCacheDirectory(); + } + /// Directory containing user document files. Future getApplicationDocumentsDirectory() async { try { diff --git a/example/lib/packages/path_provider/page.dart b/example/lib/packages/path_provider/page.dart index 27f0411..c694c33 100644 --- a/example/lib/packages/path_provider/page.dart +++ b/example/lib/packages/path_provider/page.dart @@ -54,6 +54,11 @@ class _PathProviderPageState extends AppState { desc: l10n.pathProviderDescTemporary, future: model.getTemporaryDirectory(), ), + BlockItem( + title: l10n.pathProviderTitleTemporary, + desc: l10n.pathProviderDescTemporary, + future: model.getApplicationCacheDirectory(), + ), BlockItem( title: l10n.pathProviderTitleApplicationDocuments, desc: l10n.pathProviderDescApplicationDocuments, diff --git a/packages/path_provider/path_provider_aurora/README.md b/packages/path_provider/path_provider_aurora/README.md index 67a219e..dacaf01 100644 --- a/packages/path_provider/path_provider_aurora/README.md +++ b/packages/path_provider/path_provider_aurora/README.md @@ -35,6 +35,7 @@ final Directory? downloadsDir = await getDownloadsDirectory(); ## Supported APIs - [x] `getTemporaryDirectory` - Directory location where user-specific non-essential (cached) data should be written +- [x] `getApplicationCacheDirectory` - alias of getTemporaryDirectory - [x] `getApplicationSupportDirectory` - Directory where the application may place application support files. - [ ] `getLibraryDirectory` - [x] `getApplicationDocumentsDirectory` - Directory containing user document files.