Explorar o código

fix: menu section scrollcontroller not attached (#1631)

Richard Shiue %!s(int64=2) %!d(string=hai) anos
pai
achega
d8958e82c8

+ 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,
     );
   }