Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/grouped_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,10 @@ class _GroupedListViewState<T, E> extends State<GroupedListView<T, E>> {
var isSeparator = widget.reverse ? (int i) => i.isOdd : (int i) => i.isEven;
isValidIndex(int i) => i >= 0 && i < _sortedElements.length;

if (widget.useStickyGroupSeparators) {
_ambiguate(WidgetsBinding.instance)!.addPostFrameCallback((_) {
_scrollListener();
});
});}

/// The itemBuilder function for this package divides the [index] by two
/// because between each element a separator is displayed. Depending on the
Expand Down