mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-11 23:10:36 -06:00
Feat: Update scanner persistence, more migrations and bugfixes
This commit is contained in:
30
lib/features/document_scan/cubit/document_scanner_state.dart
Normal file
30
lib/features/document_scan/cubit/document_scanner_state.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
part of 'document_scanner_cubit.dart';
|
||||
|
||||
sealed class DocumentScannerState {
|
||||
final List<File> scans;
|
||||
|
||||
const DocumentScannerState({
|
||||
this.scans = const [],
|
||||
});
|
||||
}
|
||||
|
||||
class InitialDocumentScannerState extends DocumentScannerState {
|
||||
const InitialDocumentScannerState();
|
||||
}
|
||||
|
||||
class RestoringDocumentScannerState extends DocumentScannerState {
|
||||
const RestoringDocumentScannerState({super.scans});
|
||||
}
|
||||
|
||||
class LoadedDocumentScannerState extends DocumentScannerState {
|
||||
const LoadedDocumentScannerState({super.scans});
|
||||
}
|
||||
|
||||
class ErrorDocumentScannerState extends DocumentScannerState {
|
||||
final String message;
|
||||
|
||||
const ErrorDocumentScannerState({
|
||||
required this.message,
|
||||
super.scans,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user