update patient view arguments to include business & business user

This commit is contained in:
2024-08-19 20:44:11 +02:00
parent 351ce0d6a7
commit d1f0d9045d
10 changed files with 44 additions and 20 deletions

View File

@@ -271,6 +271,8 @@ class _PatientManagerState extends State<PatientManager> {
child: BuildPatientQueueList(
patientQueue: patientQueueList,
signedInUser: widget.arguments.signedInUser,
business: widget.arguments.business,
businessUser: widget.arguments.businessUser,
),
);
}

View File

@@ -48,15 +48,6 @@ class _PatientViewState extends State<PatientView> {
return null;
}
// Future<void> loadImage() async {
// try {
// var t = MzanziInnovationHub.of(context)!.theme.logoImage();
// await precacheImage(t.image, context);
// } catch (e) {
// print('Failed to load and cache the image: $e');
// }
// }
@override
Widget build(BuildContext context) {
// loadImage();
@@ -109,6 +100,8 @@ class _PatientViewState extends State<PatientView> {
patientIndex: snapshot.data!.idpatients,
selectedPatient: snapshot.data!,
signedInUser: widget.arguments.signedInUser,
business: widget.arguments.business,
businessUser: widget.arguments.businessUser,
type: widget.arguments.type,
),
)

View File

@@ -108,6 +108,8 @@ class _PatientViewState extends State<PatientViewPersonal> {
patientIndex: snapshot.data!.idpatients,
selectedPatient: snapshot.data!,
signedInUser: widget.arguments.signedInUser,
business: widget.arguments.business,
businessUser: widget.arguments.businessUser,
type: widget.arguments.type,
),
)