Changed file directories, added clear storage setting, updated readme w/ Google Play reference

This commit is contained in:
Anton Stubenbord
2022-11-12 20:48:09 +01:00
parent c4104e75a7
commit afbd4bddb4
21 changed files with 380 additions and 135 deletions

View File

@@ -1,5 +1,7 @@
import 'dart:developer';
import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:paperless_mobile/core/model/error_message.dart';
@@ -27,7 +29,11 @@ class DocumentScannerCubit extends Cubit<List<File>> {
void reset() {
for (final doc in state) {
doc.deleteSync();
if (kDebugMode) {
log('[ScannerCubit]: Removed ${doc.path}');
}
}
imageCache.clear();
emit(initialState);
}