mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-14 02:12:21 -06:00
WIP - Provider refactorings
This commit is contained in:
@@ -13,7 +13,7 @@ class ClearStorageSetting extends StatelessWidget {
|
||||
subtitle:
|
||||
Text("Remove downloaded files, scans and clear the cache's content"),
|
||||
onTap: () {
|
||||
Provider.of<cm.CacheManager>(context).emptyCache();
|
||||
context.read<cm.CacheManager>().emptyCache();
|
||||
FileService.clearUserData();
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user