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:
Richard Shiue 2025-11-11 12:55:26 +08:00 • committed by GitHub
commit 15289103a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(