diff --git a/Frontend/patient_manager/lib/components/buildNotesList.dart b/Frontend/patient_manager/lib/components/buildNotesList.dart index 86aecc5b..20263da5 100644 --- a/Frontend/patient_manager/lib/components/buildNotesList.dart +++ b/Frontend/patient_manager/lib/components/buildNotesList.dart @@ -30,7 +30,23 @@ class _BuildNotesListState extends State { ), subtitle: Text(widget.notes[index].note_text), trailing: const Icon(Icons.arrow_forward), - onTap: () {}, + onTap: () { + showDialog( + context: context, + builder: (context) => AlertDialog( + title: Text(widget.notes[index].note_name), + content: Text( + "${widget.notes[index].insert_date}:\n${widget.notes[index].note_text}"), + actions: [ + TextButton( + onPressed: () { + Navigator.pop(context); + }, + child: const Text("Close")) + ], + ), + ); + }, ); }, ); diff --git a/Frontend/patient_manager/lib/pages/patientManager.dart b/Frontend/patient_manager/lib/pages/patientManager.dart index 0e639bc2..7bf0c71c 100644 --- a/Frontend/patient_manager/lib/pages/patientManager.dart +++ b/Frontend/patient_manager/lib/pages/patientManager.dart @@ -50,6 +50,18 @@ class _PatientManagerState extends State { return Scaffold( appBar: const MyAppBar(barTitle: "Patient Manager"), drawer: MyAppDrawer(drawerTitle: widget.userEmail), + //floatingActionButtonLocation: FloatingActionButtonLocation.endTop, + floatingActionButton: FloatingActionButton.extended( + label: const Text( + "Create", + style: TextStyle( + fontWeight: FontWeight.bold, + ), + ), + backgroundColor: Colors.blueAccent, + onPressed: () {}, + icon: const Icon(Icons.add), + ), body: FutureBuilder( future: futurePatients, builder: (context, snapshot) {