From d8958e82c8b4e4db8ab0f87a72daed0ceea7129d Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Wed, 4 Jan 2023 17:19:54 +0800 Subject: [PATCH] fix: menu section scrollcontroller not attached (#1631) --- .../presentation/home/menu/app/section/section.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/app_flowy/lib/workspace/presentation/home/menu/app/section/section.dart b/frontend/app_flowy/lib/workspace/presentation/home/menu/app/section/section.dart index d352db6620..8eecd6f73e 100644 --- a/frontend/app_flowy/lib/workspace/presentation/home/menu/app/section/section.dart +++ b/frontend/app_flowy/lib/workspace/presentation/home/menu/app/section/section.dart @@ -40,7 +40,8 @@ class ViewSection extends StatelessWidget { ); } - ReorderableColumn _reorderableColum(BuildContext context, ViewSectionState state) { + ReorderableColumn _reorderableColum( + BuildContext context, ViewSectionState state) { final children = state.views.map((view) { return ViewSectionItem( key: ValueKey(view.id), @@ -53,8 +54,11 @@ class ViewSection extends StatelessWidget { return ReorderableColumn( needsLongPressDraggable: false, onReorder: (oldIndex, index) { - context.read().add(ViewSectionEvent.moveView(oldIndex, index)); + context + .read() + .add(ViewSectionEvent.moveView(oldIndex, index)); }, + ignorePrimaryScrollController: true, children: children, ); }