old cache gets deleted

This commit is contained in:
2024-04-01 14:18:23 +02:00
parent 75846750f7
commit 6c2c305f1c
3 changed files with 20 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import '../../../widget/placeholderView.dart';
import 'jsonViewer.dart';
class CacheView extends StatefulWidget {
final collection = 'MarianumMobile';
static String collection = 'MarianumMobile';
const CacheView({super.key});
@override
@ -34,7 +34,7 @@ class _CacheViewState extends State<CacheView> {
@override
void initState() {
files = Localstore.instance.collection(widget.collection).get();
files = Localstore.instance.collection(CacheView.collection).get();
super.initState();
}