change flow after add patient

This commit is contained in:
2024-08-20 14:52:17 +02:00
parent 315789bef5
commit c06ae5169d

View File

@@ -101,7 +101,7 @@ class _AddPatientState extends State<AddPatient> {
}),
);
if (response.statusCode == 201) {
Navigator.of(context).pushNamed('/patient-profile',
Navigator.of(context).popAndPushNamed('/patient-profile',
arguments: PatientViewArguments(
widget.signedInUser, null, null, null, "personal"));
String message =