change arges to cater for selected patient
This commit is contained in:
parent
09538be196
commit
e7523377ff
4 changed files with 16 additions and 6 deletions
|
|
@ -56,7 +56,12 @@ class _AddOrViewPatientState extends State<AddOrViewPatient> {
|
|||
if (snapshot.hasData) {
|
||||
// Extracting data from snapshot object
|
||||
//final data = snapshot.data as String;
|
||||
return PatientView(arguments: widget.arguments);
|
||||
return PatientView(
|
||||
arguments: PatientViewArguments(
|
||||
widget.arguments.signedInUser,
|
||||
snapshot.requireData,
|
||||
widget.arguments.type,
|
||||
));
|
||||
}
|
||||
}
|
||||
return AddPatient(signedInUser: widget.arguments.signedInUser);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue