chore: adjust context menu visibility logic (#1158)
* chore: default example context menu * chore: adjust context menu visibility logic * chore: dart analyzer
This commit is contained in:
parent
aacec0801e
commit
15289103a2
1 changed files with 69 additions and 29 deletions
|
|
@ -97,6 +97,14 @@ class _DesktopEditorState extends State<DesktopEditor> {
|
|||
dropTargetStyle: const AppFlowyDropTargetStyle(
|
||||
color: Colors.red,
|
||||
),
|
||||
contextMenuBuilder: (context, position, editorState, onPressed) {
|
||||
return ContextMenu(
|
||||
position: position,
|
||||
editorState: editorState,
|
||||
items: standardContextMenuItems,
|
||||
onPressed: onPressed,
|
||||
);
|
||||
},
|
||||
header: Padding(
|
||||
padding: const EdgeInsets.only(bottom: 10.0),
|
||||
child: Image.asset(
|
||||
|
|
|
|||
Loading…
Reference in a new issue