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
+14 -1
View File
@@ -168,7 +168,10 @@ 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(
children: [
Expanded(
child: AlarmForm(
request: alarmRequest, request: alarmRequest,
onChanged: (updated) { onChanged: (updated) {
setState(() { setState(() {
@@ -176,6 +179,16 @@ class _TaskEditPageState extends State<TaskEditPage> {
}); });
}, },
), ),
),
IconButton(
onPressed: () => setState(() {
alarmRequests.removeAt(index);
}),
icon: Icon(Icons.close),
),
],
),
SizedBox(height: 120),
], ],
), ),
], ],