From 176c1edb74ab334603a7fef5b4a1f4e865e00826 Mon Sep 17 00:00:00 2001 From: assistenza Date: Tue, 30 Apr 2024 14:56:28 +0200 Subject: [PATCH] fix issue Sticky header not updated on web #202 --- lib/grouped_list.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); }