File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
modules/ensemble/lib/layout Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -246,14 +246,16 @@ class ListViewState extends EWidgetState<ListView>
246
246
}
247
247
}
248
248
if (itemWidget != null ) {
249
- return index < (itemCount- 1 ) ? Padding (
250
- padding: EdgeInsets .only (bottom: Utils .getDouble (widget._controller.gap, fallback: 0 )),
251
- child: widget._controller.onItemTap == null
252
- ? itemWidget
253
- : flutter.InkWell (onTap: () => _onItemTapped (index), child: itemWidget),
254
- ): widget._controller.onItemTap == null
249
+ Widget wrappedItem = widget._controller.onItemTap == null
255
250
? itemWidget
256
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;
257
259
}
258
260
return const SizedBox .shrink ();
259
261
},
You can’t perform that action at this time.
0 commit comments