Skip to content

Commit

Permalink
Fix resetting scroll direction through filter
Browse files Browse the repository at this point in the history
  • Loading branch information
robertodoering committed Apr 4, 2021
1 parent 08cf7cd commit 31ace75
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/components/screens/home/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ class _HomeScreenState extends State<HomeScreen> with RouteAware {
create: (_) => TimelineFilterModel.home(),
child: BlocProvider<TrendsBloc>(
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(),
),
),
),
Expand Down

0 comments on commit 31ace75

Please sign in to comment.