diff --git a/lib/grouped_list.dart b/lib/grouped_list.dart index 7b69671..341ec6f 100644 --- a/lib/grouped_list.dart +++ b/lib/grouped_list.dart @@ -279,7 +279,11 @@ class _GroupedListViewState extends State> { void initState() { _controller = widget.controller ?? ScrollController(); if (widget.useStickyGroupSeparators) { - _controller.addListener(_scrollListener); + _controller.addListener(() { + WidgetsBinding.instance.addPostFrameCallback((_) { + _scrollListener(); + }); + }); } super.initState(); }