Skip to content

Commit 2299f46

Browse files
Merge branch 'main' into firebase-custom-token-auth
2 parents fe5cefb + 73f7544 commit 2299f46

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Diff for: modules/ensemble/lib/layout/list_view.dart

+9-3
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,16 @@ class ListViewState extends EWidgetState<ListView>
246246
}
247247
}
248248
if (itemWidget != null) {
249-
return widget._controller.onItemTap == null
249+
Widget wrappedItem = widget._controller.onItemTap == null
250250
? itemWidget
251-
: flutter.InkWell(
252-
onTap: () => _onItemTapped(index), child: itemWidget);
251+
: flutter.InkWell(onTap: () => _onItemTapped(index), child: itemWidget);
252+
253+
return index < (itemCount - 1)
254+
? Padding(
255+
padding: EdgeInsets.only(bottom: Utils.getDouble(widget._controller.gap, fallback: 0)),
256+
child: wrappedItem,
257+
)
258+
: wrappedItem;
253259
}
254260
return const SizedBox.shrink();
255261
},

0 commit comments

Comments
 (0)