auto refresh waiting room
This commit is contained in:
@@ -10,6 +10,7 @@ import 'package:patient_manager/components/popUpMessages/mihSuccessMessage.dart'
|
|||||||
import 'package:patient_manager/env/env.dart';
|
import 'package:patient_manager/env/env.dart';
|
||||||
import 'package:patient_manager/main.dart';
|
import 'package:patient_manager/main.dart';
|
||||||
import 'package:patient_manager/objects/appUser.dart';
|
import 'package:patient_manager/objects/appUser.dart';
|
||||||
|
import 'package:patient_manager/objects/arguments.dart';
|
||||||
import 'package:patient_manager/objects/business.dart';
|
import 'package:patient_manager/objects/business.dart';
|
||||||
import 'package:patient_manager/objects/patients.dart';
|
import 'package:patient_manager/objects/patients.dart';
|
||||||
import 'package:supertokens_flutter/http.dart' as http;
|
import 'package:supertokens_flutter/http.dart' as http;
|
||||||
@@ -18,12 +19,14 @@ class BuildPatientsList extends StatefulWidget {
|
|||||||
final List<Patient> patients;
|
final List<Patient> patients;
|
||||||
final AppUser signedInUser;
|
final AppUser signedInUser;
|
||||||
final Business? business;
|
final Business? business;
|
||||||
|
final BusinessArguments arguments;
|
||||||
|
|
||||||
const BuildPatientsList({
|
const BuildPatientsList({
|
||||||
super.key,
|
super.key,
|
||||||
required this.patients,
|
required this.patients,
|
||||||
required this.signedInUser,
|
required this.signedInUser,
|
||||||
required this.business,
|
required this.business,
|
||||||
|
required this.arguments,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -60,10 +63,19 @@ class _BuildPatientsListState extends State<BuildPatientsList> {
|
|||||||
"The appointment has been successfully booked!\n\nAn approval request as been sent to the patient.Once the access request has been approved, you will be able to access the patients profile. ou can check the status of your request in patient queue under the appointment.";
|
"The appointment has been successfully booked!\n\nAn approval request as been sent to the patient.Once the access request has been approved, you will be able to access the patients profile. ou can check the status of your request in patient queue under the appointment.";
|
||||||
// "${fnameController.text} ${lnameController.text} patient profiole has been successfully added!\n";
|
// "${fnameController.text} ${lnameController.text} patient profiole has been successfully added!\n";
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
|
Navigator.pop(context);
|
||||||
setState(() {
|
setState(() {
|
||||||
dateController.text = "";
|
dateController.text = "";
|
||||||
timeController.text = "";
|
timeController.text = "";
|
||||||
});
|
});
|
||||||
|
Navigator.of(context).pushNamed(
|
||||||
|
'/patient-manager',
|
||||||
|
arguments: BusinessArguments(
|
||||||
|
widget.arguments.signedInUser,
|
||||||
|
widget.arguments.businessUser,
|
||||||
|
widget.arguments.business,
|
||||||
|
),
|
||||||
|
);
|
||||||
successPopUp(message);
|
successPopUp(message);
|
||||||
} else {
|
} else {
|
||||||
internetConnectionPopUp();
|
internetConnectionPopUp();
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ class _PatientManagerState extends State<PatientManager> {
|
|||||||
patients: patientsList,
|
patients: patientsList,
|
||||||
signedInUser: widget.arguments.signedInUser,
|
signedInUser: widget.arguments.signedInUser,
|
||||||
business: widget.arguments.business,
|
business: widget.arguments.business,
|
||||||
|
arguments: widget.arguments,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user