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

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

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

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

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

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

Loading…
Cancel
Save