File frontend added to app

This commit is contained in:
2024-06-25 13:47:40 +02:00
parent ad805fdca1
commit 0a83d08492
62 changed files with 497 additions and 64 deletions

View File

@@ -12,6 +12,7 @@ Future<List<Note>> fetchNotes(String endpoint) async {
if (response.statusCode == 200) {
Iterable l = jsonDecode(response.body);
List<Note> notes = List<Note>.from(l.map((model) => Note.fromJson(model)));
print("Here notes");
return notes;
} else {
throw Exception('failed to load patients');