add business to BuildPatientsList call

This commit is contained in:
2024-08-13 12:12:43 +02:00
parent b8f5854bb6
commit 26cc26650b

View File

@@ -132,6 +132,7 @@ class _PatientManagerState extends State<PatientManager> {
child: BuildPatientsList( child: BuildPatientsList(
patients: patientsList, patients: patientsList,
signedInUser: widget.arguments.signedInUser, signedInUser: widget.arguments.signedInUser,
business: widget.arguments.business,
), ),
); );
} }
@@ -299,9 +300,22 @@ class _PatientManagerState extends State<PatientManager> {
height: 600, height: 600,
child: Column(mainAxisSize: MainAxisSize.max, children: [ child: Column(mainAxisSize: MainAxisSize.max, children: [
//const SizedBox(height: 15), //const SizedBox(height: 15),
const Text( Row(
"Waiting Room", mainAxisAlignment: MainAxisAlignment.center,
style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold), crossAxisAlignment: CrossAxisAlignment.center,
children: [
const Text(
"Waiting Room",
style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
),
IconButton(
onPressed: () {
refreshQueue();
},
icon: const Icon(
Icons.refresh,
))
],
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
MIHDateField( MIHDateField(
@@ -373,6 +387,13 @@ class _PatientManagerState extends State<PatientManager> {
); );
} }
void refreshQueue() {
setState(() {
start = true;
});
checkforchange();
}
void submitPatientForm() { void submitPatientForm() {
if (searchController.text != "") { if (searchController.text != "") {
setState(() { setState(() {