Fix json misalignment and error representation #8

Merged
marco merged 2 commits from fix-json-misalignment-and-error-representation into master 2024-12-22 17:29:21 +00:00
Showing only changes of commit 7b440e82aa - Show all commits

View File

@ -21,7 +21,6 @@ class FoodEntryBloc extends Bloc<FoodEvent, GlobalEntryState> {
on<FoodDeletionEvent>(handleDeleteFoodEvent);
on<BarcodeAboutToBeScanned>(handleBarcodeScannedEvent);
on<FoodEntryTapped>(handleFoodEntryTapped);
on<PermissionException>(handlePermissionException);
}
void handlePageBeingInitialized(
PageBeingInitialized event, Emitter<GlobalEntryState> emit) async {
@ -216,14 +215,6 @@ class FoodEntryBloc extends Bloc<FoodEvent, GlobalEntryState> {
emit(GlobalEntryState(foodEntries: state.foodEntries));
}
void handlePermissionException(
PermissionException event, Emitter<GlobalEntryState> emit) async {
emit(GlobalEntryState(
foodEntries: state.foodEntries,
appError:
GlobalAppError(GlobalAppErrorType.errCameraPermissionDenied)));
}
}
class FoodEvent {