Fix json misalignment and error representation #8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user