feat(app): refactoring of sentry using, feat(become_consultant): fixed possible infinite loading, feat(push_notifications): fixed push navigation from paid plan push

This commit is contained in:
misha
2026-04-07 10:05:11 +03:00
parent b6b13b1db5
commit aac085def4
133 changed files with 2344 additions and 2456 deletions

View File

@@ -3,6 +3,7 @@ import 'package:eatvio_app/core/const.dart';
import 'package:eatvio_app/features/my_plans/presentation/cubit/my_plans_state.dart';
import 'package:eatvio_app/features/my_plans/repositories/my_diets_repository.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:eatvio_app/core/error_reporting/report_from.dart';
class MyPlansCubit extends Cubit<MyPlansState> {
final MyPlansRepository myPlansRepository;
@@ -145,7 +146,8 @@ class MyPlansCubit extends Cubit<MyPlansState> {
maxActivePlanPrice: maxPlanPrice,
),
);
} catch (e) {
} catch (e, st) {
await reportFrom(e, st, this);
emit(
state.copyWith(error: e.toString()),
);
@@ -185,7 +187,8 @@ class MyPlansCubit extends Cubit<MyPlansState> {
maxDraftPlanPrice: maxPlanPrice,
),
);
} catch (e) {
} catch (e, st) {
await reportFrom(e, st, this);
emit(
state.copyWith(error: e.toString()),
);
@@ -197,7 +200,8 @@ class MyPlansCubit extends Cubit<MyPlansState> {
await myPlansRepository.deletePlan(slug);
await loadAllPlans();
return true;
} catch (e) {
} catch (e, st) {
await reportFrom(e, st, this);
emit(
state.copyWith(error: e.toString()),
);
@@ -209,7 +213,8 @@ class MyPlansCubit extends Cubit<MyPlansState> {
try {
await myPlansRepository.unpublish(slug);
return true;
} catch (e) {
} catch (e, st) {
await reportFrom(e, st, this);
return false;
}
}