diff --git a/lib/l10n/intl_cs.arb b/lib/l10n/intl_cs.arb index fe13ea15..d39655ef 100644 --- a/lib/l10n/intl_cs.arb +++ b/lib/l10n/intl_cs.arb @@ -684,6 +684,10 @@ "@examination_call_doctor1": {}, "examination_call_doctor2": "a objednej se na", "@examination_call_doctor2": {}, + "examination_last_visit_edited": "Poslední prohlídka byla aktualizována.", + "@examination_last_visit_edited": {}, + "examination_confirmed_message": "Připomeneme ti, kdy se znovu objednat.", + "@examination_confirmed_message": {}, "back": "Zpět", "@back": {}, "cancel_checkup": "Zrušit prohlídku", diff --git a/lib/ui/widgets/prevention/change_last_visit_sheet.dart b/lib/ui/widgets/prevention/change_last_visit_sheet.dart index f3e0708d..20b502e5 100644 --- a/lib/ui/widgets/prevention/change_last_visit_sheet.dart +++ b/lib/ui/widgets/prevention/change_last_visit_sheet.dart @@ -153,6 +153,8 @@ class _DatePickerContentState extends State<_DatePickerContent> { Provider.of(context, listen: false) .updateExaminationsRecord(res.data); await AutoRouter.of(context).pop(); + if (!mounted) return; + showFlushBarSuccess(context, context.l10n.examination_last_visit_edited); }, failure: (err) async { showFlushBarError( diff --git a/lib/ui/widgets/prevention/examination_confirm_sheet.dart b/lib/ui/widgets/prevention/examination_confirm_sheet.dart index 2cde83eb..b32a3070 100644 --- a/lib/ui/widgets/prevention/examination_confirm_sheet.dart +++ b/lib/ui/widgets/prevention/examination_confirm_sheet.dart @@ -80,6 +80,12 @@ void showConfirmationSheet( onButtonTap: completedAction, ), ); + if (!mounted) return; + showFlushBarSuccess( + context, + context.l10n.examination_confirmed_message, + sync: true, + ); }, failure: (err) async { await AutoRouter.of(context).pop(); diff --git a/lib/ui/widgets/prevention/examination_edit_sheet.dart b/lib/ui/widgets/prevention/examination_edit_sheet.dart index 109dbb23..3b0b2077 100644 --- a/lib/ui/widgets/prevention/examination_edit_sheet.dart +++ b/lib/ui/widgets/prevention/examination_edit_sheet.dart @@ -162,6 +162,7 @@ class _CustomEditExaminationState extends State { res.data, ); AutoRouter.of(context).popUntilRouteWithName(ExaminationDetailRoute.name); + showFlushBarSuccess(context, context.l10n.examination_was_edited, sync: true); }, failure: (err) => showFlushBarError( context,