Implemented error reporting solution

This commit is contained in:
Anton Stubenbord
2022-11-14 00:08:07 +01:00
parent b5aac36b2b
commit 511f8ca3f4
33 changed files with 475 additions and 110 deletions

View File

@@ -0,0 +1,17 @@
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:injectable/injectable.dart';
import 'package:paperless_mobile/core/model/paperless_server_information.dart';
import 'package:paperless_mobile/core/service/paperless_server_information_service.dart';
@singleton
class PaperlessServerInformationCubit
extends Cubit<PaperlessServerInformation> {
final PaperlessServerInformationService service;
PaperlessServerInformationCubit(this.service)
: super(PaperlessServerInformation());
Future<void> updateStatus() async {
emit(await service.getInformation());
}
}