added spacing at the end of the form and delete button for alarms
This commit is contained in:
@@ -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),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user