From 31ace7530f4fe20585b872f9b8a85859005bc025 Mon Sep 17 00:00:00 2001 From: Roberto Doering Date: Sun, 4 Apr 2021 20:17:11 +0200 Subject: [PATCH] Fix resetting scroll direction through filter --- lib/components/screens/home/home_screen.dart | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/components/screens/home/home_screen.dart b/lib/components/screens/home/home_screen.dart index 25c2bc354..f57f00e14 100644 --- a/lib/components/screens/home/home_screen.dart +++ b/lib/components/screens/home/home_screen.dart @@ -59,12 +59,13 @@ class _HomeScreenState extends State with RouteAware { create: (_) => TimelineFilterModel.home(), child: BlocProvider( create: (_) => TrendsBloc()..add(const FindTrendsEvent.global()), - child: HarpyScaffold( - drawer: const HomeDrawer(), - endDrawer: const HomeTimelineFilterDrawer(), - endDrawerEnableOpenDragGesture: false, - body: ScrollDirectionListener( - child: HomeTabView(), + // scroll direction listener has to be built above the filter + child: ScrollDirectionListener( + child: HarpyScaffold( + drawer: const HomeDrawer(), + endDrawer: const HomeTimelineFilterDrawer(), + endDrawerEnableOpenDragGesture: false, + body: HomeTabView(), ), ), ),