6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit c00598aa
Changed files
comwell_key_app/lib/pregistration/bloc/preregistration_cubit.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Diff
diff --git a/comwell_key_app/lib/pregistration/bloc/preregistration_cubit.dart b/comwell_key_app/lib/pregistration/bloc/preregistration_cubit.dart
index 4f80baf7..cae287b2 100644
--- a/comwell_key_app/lib/pregistration/bloc/preregistration_cubit.dart
+++ b/comwell_key_app/lib/pregistration/bloc/preregistration_cubit.dart
@@ -104,12 +104,14 @@ class PreregistrationCubit extends Cubit<PreregistrationState> {
emit(state.copyWith(selectedPaymentMethod: paymentMethod));
}
- void onBackClicked() {
- if (_isAnimating) return;
+ bool onBackClicked() {
+ if (_isAnimating) return true;
final hasPage = pageController.page != null;
if (hasPage && pageController.page! >= 1.0) {
_navigatePreviousPage();
+ return true;
}
+ return false;
}
void _navigateTo(PreregistrationPage page) async {