File frontend added to app
This commit is contained in:
parent
ad805fdca1
commit
0a83d08492
62 changed files with 497 additions and 64 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue