Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: scrolling selection-menu when it goes out of bound, fixes #2019 (#2035)
Samiksha Garg893aae002e38
diff --git a/frontend/appflowy_flutter/packages/appflowy_editor/lib/src/render/selection_menu/selection_menu_service.dart b/frontend/appflowy_flutter/packages/appflowy_editor/lib/src/render/selection_menu/selection_menu_service.dartindex 7e0ce3eeea..b4f7bb5c67 100644--- a/frontend/appflowy_flutter/packages/appflowy_editor/lib/src/render/selection_menu/selection_menu_service.dart+++ b/frontend/appflowy_flutter/packages/appflowy_editor/lib/src/render/selection_menu/selection_menu_service.dart@@ -91,20 +91,24 @@ class SelectionMenu implements SelectionMenuService {top: showBelow ? _offset.dy : null,bottom: showBelow ? null : _offset.dy,left: offset.dx,- child: SelectionMenuWidget(- items: [- ..._defaultSelectionMenuItems,- ...editorState.selectionMenuItems,- ],- maxItemInRow: 5,- editorState: editorState,- menuService: this,- onExit: () {- dismiss();- },- onSelectionUpdate: () {- _selectionUpdateByInner = true;- },+ right: 0,+ child: SingleChildScrollView(+ scrollDirection: Axis.horizontal,+ child: SelectionMenuWidget(+ items: [+ ..._defaultSelectionMenuItems,+ ...editorState.selectionMenuItems,+ ],+ maxItemInRow: 5,+ editorState: editorState,+ menuService: this,+ onExit: () {+ dismiss();+ },+ onSelectionUpdate: () {+ _selectionUpdateByInner = true;+ },+ ),),);});