Skip to content

Commit a306e5b

Browse files
committed
feat(core): use ListView.separated in FlatFeedCore
1 parent 4a0e8c6 commit a306e5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/stream_feed_flutter_core/lib/src/flat_feed_core.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,11 @@ class _GenericFlatFeedCoreState<A, Ob, T, Or>
113113
if (activities.isEmpty) {
114114
return widget.onEmptyWidget;
115115
}
116-
return ListView.builder(
116+
return ListView.separated(
117117
physics:
118118
widget.scrollPhysics ?? const AlwaysScrollableScrollPhysics(),
119119
itemCount: activities.length,
120+
separatorBuilder: (context, index) => const Divider(),
120121
itemBuilder: (context, idx) => widget.feedBuilder(
121122
context,
122123
activities,

0 commit comments

Comments
 (0)