pull/184/head^2
haroon amjad 3 months ago
parent 01c21377aa
commit 20ed54243b

@ -191,8 +191,8 @@ class ApiClientImp implements ApiClient {
body['TokenID'] = "@dm!n"; body['TokenID'] = "@dm!n";
} }
body['TokenID'] = "@dm!n"; // body['TokenID'] = "@dm!n";
body['PatientID'] = 4773882; // body['PatientID'] = 4768663;
// body['PatientTypeID'] = 1; // body['PatientTypeID'] = 1;
// body['PatientOutSA'] = 0; // body['PatientOutSA'] = 0;
// body['SessionID'] = "45786230487560q"; // body['SessionID'] = "45786230487560q";

@ -205,7 +205,8 @@ class PossibleConditionsPage extends StatelessWidget {
final SymptomsCheckerViewModel symptomsCheckerViewModel = context.read<SymptomsCheckerViewModel>(); final SymptomsCheckerViewModel symptomsCheckerViewModel = context.read<SymptomsCheckerViewModel>();
symptomsCheckerViewModel.reset(); // Clear all symptoms checker data symptomsCheckerViewModel.reset(); // Clear all symptoms checker data
final navigationService = getIt.get<NavigationService>(); final navigationService = getIt.get<NavigationService>();
navigationService.replaceAllRoutesAndNavigateToLanding(); // navigationService.replaceAllRoutesAndNavigateToLanding();
navigationService.replaceAllRoutesAndNavigateToLandingAuth();
}, },
), ),
trailing: _buildTrailingSection(context), trailing: _buildTrailingSection(context),

@ -89,7 +89,8 @@ class _SymptomsSelectorPageState extends State<SymptomsSelectorPage> {
context.pop(); context.pop();
viewModel.reset(); // Clear all symptoms checker data viewModel.reset(); // Clear all symptoms checker data
final navigationService = getIt.get<NavigationService>(); final navigationService = getIt.get<NavigationService>();
navigationService.replaceAllRoutesAndNavigateToLanding(); // navigationService.replaceAllRoutesAndNavigateToLanding();
navigationService.replaceAllRoutesAndNavigateToLandingAuth();
}), }),
child: viewModel.isBodySymptomsLoading child: viewModel.isBodySymptomsLoading
? _buildLoadingShimmer() ? _buildLoadingShimmer()

@ -316,7 +316,8 @@ class _TriagePageState extends State<TriagePage> {
context.pop(); context.pop();
viewModel.reset(); // Clear all symptoms checker data viewModel.reset(); // Clear all symptoms checker data
final navigationService = getIt.get<NavigationService>(); final navigationService = getIt.get<NavigationService>();
navigationService.replaceAllRoutesAndNavigateToLanding(); // navigationService.replaceAllRoutesAndNavigateToLanding();
navigationService.replaceAllRoutesAndNavigateToLandingAuth();
}, },
), ),
callBackFunc: () {}, callBackFunc: () {},

@ -34,6 +34,13 @@ class NavigationService {
); );
} }
void replaceAllRoutesAndNavigateToLandingAuth() {
navigatorKey.currentState?.pushNamedAndRemoveUntil(
AppRoutes.landingScreen,
(Route<dynamic> route) => false,
);
}
void pushAndReplace(String routeName) { void pushAndReplace(String routeName) {
navigatorKey.currentState?.pushReplacementNamed(routeName); navigatorKey.currentState?.pushReplacementNamed(routeName);
} }

Loading…
Cancel
Save