include patient view auguments

This commit is contained in:
2024-08-08 11:40:49 +02:00
parent 470311f4ec
commit ab7c9209ac
7 changed files with 85 additions and 48 deletions

View File

@@ -24,11 +24,13 @@ class PatientFiles extends StatefulWidget {
final int patientIndex;
final Patient selectedPatient;
final AppUser signedInUser;
final String type;
const PatientFiles({
super.key,
required this.patientIndex,
required this.selectedPatient,
required this.signedInUser,
required this.type,
});
@override
@@ -561,7 +563,7 @@ class _PatientFilesState extends State<PatientFiles> {
}
List<Widget> setIcons() {
if (widget.signedInUser.type == "personal") {
if (widget.type == "personal") {
return [
Text(
"Files",