mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
* fix: scrolling selection-menu when it goes out of bound * refactor: added comma as per style guidelines
This commit is contained in:
parent
81e50b8dd5
commit
893aae002e
@ -91,20 +91,24 @@ class SelectionMenu implements SelectionMenuService {
|
|||||||
top: showBelow ? _offset.dy : null,
|
top: showBelow ? _offset.dy : null,
|
||||||
bottom: showBelow ? null : _offset.dy,
|
bottom: showBelow ? null : _offset.dy,
|
||||||
left: offset.dx,
|
left: offset.dx,
|
||||||
child: SelectionMenuWidget(
|
right: 0,
|
||||||
items: [
|
child: SingleChildScrollView(
|
||||||
..._defaultSelectionMenuItems,
|
scrollDirection: Axis.horizontal,
|
||||||
...editorState.selectionMenuItems,
|
child: SelectionMenuWidget(
|
||||||
],
|
items: [
|
||||||
maxItemInRow: 5,
|
..._defaultSelectionMenuItems,
|
||||||
editorState: editorState,
|
...editorState.selectionMenuItems,
|
||||||
menuService: this,
|
],
|
||||||
onExit: () {
|
maxItemInRow: 5,
|
||||||
dismiss();
|
editorState: editorState,
|
||||||
},
|
menuService: this,
|
||||||
onSelectionUpdate: () {
|
onExit: () {
|
||||||
_selectionUpdateByInner = true;
|
dismiss();
|
||||||
},
|
},
|
||||||
|
onSelectionUpdate: () {
|
||||||
|
_selectionUpdateByInner = true;
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user