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

@@ -16,8 +16,13 @@ import 'package:supertokens_flutter/http.dart' as http;
class PatientNotes extends StatefulWidget {
final String patientAppId;
final AppUser signedInUser;
const PatientNotes(
{super.key, required this.patientAppId, required this.signedInUser});
final String type;
const PatientNotes({
super.key,
required this.patientAppId,
required this.signedInUser,
required this.type,
});
@override
State<PatientNotes> createState() => _PatientNotesState();
@@ -217,7 +222,7 @@ class _PatientNotesState extends State<PatientNotes> {
}
List<Widget> setIcons() {
if (widget.signedInUser.type == "personal") {
if (widget.type == "personal") {
return [
Text(
"Notes",