Skip to content

Commit

Permalink
Adjusted list layout spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Oct 23, 2023
1 parent 55a8d40 commit 461eb06
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions lib/widgets/draggable_containers/draggable_list_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class DraggableListLayout extends DraggableLayoutContainer {
refresh();
}

List<Widget> getListColumn() {
List<Widget> _getListColumn() {
List<Widget> column = [];

for (DraggableNT4WidgetContainer widget in children) {
Expand Down Expand Up @@ -294,12 +294,11 @@ class DraggableListLayout extends DraggableLayoutContainer {
Future.delayed(Duration.zero, () => model?.setDraggable(true));
},
child: Padding(
padding: const EdgeInsets.all(8.0),
padding: const EdgeInsets.symmetric(horizontal: 4.0, vertical: 5.5),
child: Container(
padding: const EdgeInsets.all(8.0),
constraints: BoxConstraints(
minHeight: 96,
// maxWidth: widget.displayRect.width,
maxHeight: widget.displayRect.height - 32,
),
decoration: BoxDecoration(
Expand All @@ -308,7 +307,7 @@ class DraggableListLayout extends DraggableLayoutContainer {
boxShadow: const [
BoxShadow(
offset: Offset(2, 2),
blurRadius: 10.5,
blurRadius: 8.0,
spreadRadius: 0,
color: Colors.black,
),
Expand All @@ -333,11 +332,6 @@ class DraggableListLayout extends DraggableLayoutContainer {
),
),
);
column.add(const Divider(height: 5));
}

if (column.isNotEmpty) {
column.removeLast();
}

return column;
Expand All @@ -350,12 +344,10 @@ class DraggableListLayout extends DraggableLayoutContainer {
width: draggablePositionRect.width,
height: draggablePositionRect.height,
opacity: 0.80,
child: ClipRRect(
child: Wrap(
children: [
...getListColumn(),
],
),
child: Wrap(
children: [
..._getListColumn(),
],
),
);
}
Expand All @@ -370,12 +362,10 @@ class DraggableListLayout extends DraggableLayoutContainer {
child: Opacity(
opacity: (enabled) ? 1.00 : 0.50,
child: SingleChildScrollView(
child: ClipRRect(
child: Wrap(
children: [
...getListColumn(),
],
),
child: Wrap(
children: [
..._getListColumn(),
],
),
),
),
Expand Down

0 comments on commit 461eb06

Please sign in to comment.