diff --git a/lib/common/widgets/sliver/sliver_floating_header.dart b/lib/common/widgets/sliver/sliver_floating_header.dart index 7b0aee42c..5b87b9e8e 100644 --- a/lib/common/widgets/sliver/sliver_floating_header.dart +++ b/lib/common/widgets/sliver/sliver_floating_header.dart @@ -79,9 +79,9 @@ class _SliverFloatingHeaderScrollState void _isScrollingListener() { assert(_position != null); - final RenderSliverFloatingHeader? renderer = context - .findAncestorRenderObjectOfType(); if (_position!.isScrollingNotifier.value) { + final RenderSliverFloatingHeader? renderer = context + .findAncestorRenderObjectOfType(); renderer?.updateScrollStartDirection(_position!.userScrollDirection); } }