added spacing at the end of the form and delete button for alarms

This commit is contained in:
2026-07-20 14:52:16 +02:00
parent 62af007799
commit 2c3e52ba53
+20 -7
View File
@@ -168,14 +168,27 @@ class _TaskEditPageState extends State<TaskEditPage> {
icon: Icon(Icons.location_on), icon: Icon(Icons.location_on),
), ),
for (final (index, alarmRequest) in alarmRequests.indexed) for (final (index, alarmRequest) in alarmRequests.indexed)
AlarmForm( Row(
request: alarmRequest, children: [
onChanged: (updated) { Expanded(
setState(() { child: AlarmForm(
alarmRequests[index] = updated; request: alarmRequest,
}); onChanged: (updated) {
}, setState(() {
alarmRequests[index] = updated;
});
},
),
),
IconButton(
onPressed: () => setState(() {
alarmRequests.removeAt(index);
}),
icon: Icon(Icons.close),
),
],
), ),
SizedBox(height: 120),
], ],
), ),
], ],