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,35 +111,21 @@ class _BuildNotesListState extends State<BuildNotesList> {
width: 5.0), width: 5.0),
), ),
child: Column( child: Column(
//mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
children: [ children: [
Row( const SizedBox(
crossAxisAlignment: CrossAxisAlignment.center, height: 25,
mainAxisAlignment: MainAxisAlignment.center, ),
children: [ Text(
Text( title,
title, textAlign: TextAlign.center,
textAlign: TextAlign.center, style: TextStyle(
style: TextStyle( color: MzanziInnovationHub.of(context)!
color: MzanziInnovationHub.of(context)! .theme
.theme .secondaryColor(),
.secondaryColor(), fontSize: 35.0,
fontSize: 35.0, 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(
@@ -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(),
),
),
),
], ],
), ),
), ),