Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
Sticky header not updated on web Dimibe#202
  • Loading branch information
matteoberla committed Apr 30, 2024
1 parent eb46e62 commit 176c1ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/grouped_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,11 @@ class _GroupedListViewState<T, E> extends State<GroupedListView<T, E>> {
void initState() {
_controller = widget.controller ?? ScrollController();
if (widget.useStickyGroupSeparators) {
_controller.addListener(_scrollListener);
_controller.addListener(() {
WidgetsBinding.instance.addPostFrameCallback((_) {
_scrollListener();
});
});
}
super.initState();
}
Expand Down

0 comments on commit 176c1ed

Please sign in to comment.