move position of delete icon when opening

This commit is contained in:
2024-08-08 11:50:08 +02:00
parent 0509b826a7
commit a9da6de4d8

View File

@@ -111,12 +111,11 @@ class _BuildNotesListState extends State<BuildNotesList> {
width: 5.0), width: 5.0),
), ),
child: Column( child: Column(
//mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
const SizedBox(
height: 25,
),
Text( Text(
title, title,
textAlign: TextAlign.center, textAlign: TextAlign.center,
@@ -128,19 +127,6 @@ class _BuildNotesListState extends State<BuildNotesList> {
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
), ),
IconButton(
onPressed: () {
deletePatientPopUp(noteId);
},
icon: Icon(
Icons.delete,
color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor(),
),
),
],
),
const SizedBox(height: 25.0), const SizedBox(height: 25.0),
Expanded( Expanded(
child: MyMLTextField( child: MyMLTextField(
@@ -182,6 +168,22 @@ class _BuildNotesListState extends State<BuildNotesList> {
), ),
), ),
), ),
Positioned(
top: 5,
left: 5,
width: 50,
height: 50,
child: IconButton(
onPressed: () {
deletePatientPopUp(noteId);
},
icon: Icon(
Icons.delete,
color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
),
),
),
], ],
), ),
), ),