change to have personal notes view

This commit is contained in:
2024-07-29 11:07:22 +02:00
parent 38c3b097fb
commit 0fbede68b1
3 changed files with 54 additions and 34 deletions

View File

@@ -2,14 +2,14 @@ class Note {
final int idpatient_notes;
final String note_name;
final String note_text;
final int patient_id;
final String insert_date;
final String app_id;
const Note({
required this.idpatient_notes,
required this.note_name,
required this.note_text,
required this.patient_id,
required this.app_id,
required this.insert_date,
});
@@ -19,15 +19,15 @@ class Note {
"idpatient_notes": int idpatient_notes,
"note_name": String note_name,
"note_text": String note_text,
"patient_id": int patient_id,
"insert_date": String insert_date,
"app_id": String app_id,
} =>
Note(
idpatient_notes: idpatient_notes,
note_name: note_name,
note_text: note_text,
patient_id: patient_id,
insert_date: insert_date,
app_id: app_id,
),
_ => throw const FormatException('Failed to load album.'),
};