소스 검색

fix: menu section scrollcontroller not attached (#1631)

Richard Shiue 2 년 전
부모
커밋
d8958e82c8
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      frontend/app_flowy/lib/workspace/presentation/home/menu/app/section/section.dart

+ 6 - 2
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<ViewSectionBloc>().add(ViewSectionEvent.moveView(oldIndex, index));
+        context
+            .read<ViewSectionBloc>()
+            .add(ViewSectionEvent.moveView(oldIndex, index));
       },
+      ignorePrimaryScrollController: true,
       children: children,
     );
   }