diff --git a/lib/pages/task_edit_page.dart b/lib/pages/task_edit_page.dart index 5195970..3e6ea83 100644 --- a/lib/pages/task_edit_page.dart +++ b/lib/pages/task_edit_page.dart @@ -168,14 +168,27 @@ class _TaskEditPageState extends State { icon: Icon(Icons.location_on), ), for (final (index, alarmRequest) in alarmRequests.indexed) - AlarmForm( - request: alarmRequest, - onChanged: (updated) { - setState(() { - alarmRequests[index] = updated; - }); - }, + Row( + children: [ + Expanded( + child: AlarmForm( + request: alarmRequest, + onChanged: (updated) { + setState(() { + alarmRequests[index] = updated; + }); + }, + ), + ), + IconButton( + onPressed: () => setState(() { + alarmRequests.removeAt(index); + }), + icon: Icon(Icons.close), + ), + ], ), + SizedBox(height: 120), ], ), ],