Skip to content

Commit

Permalink
Changed delete icon for list layout properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Oct 23, 2023
1 parent 338fe5e commit f077fca
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/widgets/draggable_containers/draggable_list_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,18 @@ class DraggableListLayout extends DraggableLayoutContainer {
.map(
(container) => Padding(
key: UniqueKey(),
padding: const EdgeInsets.only(right: 8.0),
padding: EdgeInsets.zero,
child: ExpansionTile(
title: Text(container.title ?? ''),
subtitle: Text(
container.child?.type ?? 'NT4Widget'),
controlAffinity:
ListTileControlAffinity.leading,
trailing: IconButton(
icon: const Icon(Icons.clear),
icon: const Icon(
Icons.delete,
color: Colors.red,
),
onPressed: () {
setState(() {
children.remove(container);
Expand All @@ -88,6 +91,8 @@ class DraggableListLayout extends DraggableLayoutContainer {
refresh();
});
}),
tilePadding:
const EdgeInsets.only(right: 40.0),
childrenPadding: const EdgeInsets.only(
left: 16.0,
top: 8.0,
Expand Down Expand Up @@ -147,7 +152,7 @@ class DraggableListLayout extends DraggableLayoutContainer {
container.title = value;

container.refresh();

refresh();
});
},
Expand Down

0 comments on commit f077fca

Please sign in to comment.