From 82dad582c4eacf446b95baaa9c6657c05765ba79 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Sun, 17 May 2026 15:09:31 +0300 Subject: [PATCH] Updates --- lib/core/app_state.dart | 2 +- lib/presentation/home/landing_page.dart | 2 +- lib/presentation/symptoms_checker/triage_screen.dart | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/core/app_state.dart b/lib/core/app_state.dart index 5eb7a05d..fce61fc7 100644 --- a/lib/core/app_state.dart +++ b/lib/core/app_state.dart @@ -44,7 +44,7 @@ class AppState { AuthenticatedUser? _authenticatedRootUser; AuthenticatedUser? _authenticatedChildUser; - bool isPaytabsEnabled = false; + bool isPaytabsEnabled = true; int? _superUserID; bool isChildLoggedIn = false; diff --git a/lib/presentation/home/landing_page.dart b/lib/presentation/home/landing_page.dart index f31a04cc..869f56b2 100644 --- a/lib/presentation/home/landing_page.dart +++ b/lib/presentation/home/landing_page.dart @@ -1179,7 +1179,7 @@ class _LandingPageState extends State { }, backgroundColor: AppColors.warningColorYellow.withValues(alpha: 0.20), textColor: AppColors.alertColor, - borderColor: AppColors.infoBannerBgColor, + borderColor: AppColors.warningColorYellow.withValues(alpha: 0.01), fontSize: 12.f, fontWeight: FontWeight.w600, borderRadius: 12.r, diff --git a/lib/presentation/symptoms_checker/triage_screen.dart b/lib/presentation/symptoms_checker/triage_screen.dart index 79c47d09..f6faa807 100644 --- a/lib/presentation/symptoms_checker/triage_screen.dart +++ b/lib/presentation/symptoms_checker/triage_screen.dart @@ -78,7 +78,8 @@ class _TriagePageState extends State { } // Case 2: Should stop flag is true OR Case 3: Probability >= 70% OR Case 4: 7 or more questions answered - if (highestProbability >= 70.0 || viewModel.triageQuestionCount >= 30) { + // if (highestProbability >= 70.0 || viewModel.triageQuestionCount >= 30) { + if (highestProbability >= 70.0 || viewModel.triageQuestionCount >= 30 || viewModel.shouldStopTriage) { // Navigate to results/possible conditions screen context.navigateWithName(AppRoutes.possibleConditionsPage); return;