Skip to content

Commit d8958e8

Browse files
authored
fix: menu section scrollcontroller not attached (#1631)
1 parent a07a180 commit d8958e8

File tree

1 file changed

+6
-2
lines changed
  • frontend/app_flowy/lib/workspace/presentation/home/menu/app/section

1 file changed

+6
-2
lines changed

frontend/app_flowy/lib/workspace/presentation/home/menu/app/section/section.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class ViewSection extends StatelessWidget {
4040
);
4141
}
4242

43-
ReorderableColumn _reorderableColum(BuildContext context, ViewSectionState state) {
43+
ReorderableColumn _reorderableColum(
44+
BuildContext context, ViewSectionState state) {
4445
final children = state.views.map((view) {
4546
return ViewSectionItem(
4647
key: ValueKey(view.id),
@@ -53,8 +54,11 @@ class ViewSection extends StatelessWidget {
5354
return ReorderableColumn(
5455
needsLongPressDraggable: false,
5556
onReorder: (oldIndex, index) {
56-
context.read<ViewSectionBloc>().add(ViewSectionEvent.moveView(oldIndex, index));
57+
context
58+
.read<ViewSectionBloc>()
59+
.add(ViewSectionEvent.moveView(oldIndex, index));
5760
},
61+
ignorePrimaryScrollController: true,
5862
children: children,
5963
);
6064
}

0 commit comments

Comments
 (0)