diff --git a/Frontend/patient_manager/lib/components/buildNotesList.dart b/Frontend/patient_manager/lib/components/buildNotesList.dart index 4be6eb7b..4f6cc9db 100644 --- a/Frontend/patient_manager/lib/components/buildNotesList.dart +++ b/Frontend/patient_manager/lib/components/buildNotesList.dart @@ -111,35 +111,21 @@ class _BuildNotesListState extends State { width: 5.0), ), child: Column( - //mainAxisSize: MainAxisSize.max, + mainAxisSize: MainAxisSize.max, children: [ - Row( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Text( - title, - textAlign: TextAlign.center, - style: TextStyle( - color: MzanziInnovationHub.of(context)! - .theme - .secondaryColor(), - fontSize: 35.0, - fontWeight: FontWeight.bold, - ), - ), - IconButton( - onPressed: () { - deletePatientPopUp(noteId); - }, - icon: Icon( - Icons.delete, - color: MzanziInnovationHub.of(context)! - .theme - .secondaryColor(), - ), - ), - ], + const SizedBox( + height: 25, + ), + Text( + title, + textAlign: TextAlign.center, + style: TextStyle( + color: MzanziInnovationHub.of(context)! + .theme + .secondaryColor(), + fontSize: 35.0, + fontWeight: FontWeight.bold, + ), ), const SizedBox(height: 25.0), Expanded( @@ -182,6 +168,22 @@ class _BuildNotesListState extends State { ), ), ), + Positioned( + top: 5, + left: 5, + width: 50, + height: 50, + child: IconButton( + onPressed: () { + deletePatientPopUp(noteId); + }, + icon: Icon( + Icons.delete, + color: + MzanziInnovationHub.of(context)!.theme.secondaryColor(), + ), + ), + ), ], ), ),