From 39434f6029af4b84c9995be6432c26379b09490d Mon Sep 17 00:00:00 2001 From: Gaurav Yadav Date: Tue, 3 Dec 2024 15:24:58 +0530 Subject: [PATCH] Update grouped_list.dart --- lib/grouped_list.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/grouped_list.dart b/lib/grouped_list.dart index 182947a..100fac8 100644 --- a/lib/grouped_list.dart +++ b/lib/grouped_list.dart @@ -314,9 +314,10 @@ class _GroupedListViewState extends State> { 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