mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: menu section scrollcontroller not attached (#1631)
This commit is contained in:
parent
a07a180cc8
commit
d8958e82c8
@ -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,
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user