Skip to content

[Bug] Context Menu items is no showing up at all on IOS #1138

@followthemoney1

Description

@followthemoney1

Bug Description

No default context menu items are showing, moreover, when I'm trying to override to use my own ContextMenuItems they are now showing up.

How to Reproduce

 Positioned.fill(
                              child: AppFlowyEditor(
                                editorState: editorState,
                                autoFocus: false,
                                enableAutoComplete: true,
                                showMagnifier: false,

                                // contextMenuItems: [
                                //   [
                                //     // Cut
                                //     ContextMenuItem(
                                //       getName: () => 'Cut',
                                //       onPressed: (editorState) {
                                //         handleCut(editorState);
                                //       },
                                //     ),
                                //     // Copy
                                //     ContextMenuItem(
                                //       getName: () => 'Copy',
                                //       onPressed: (editorState) {
                                //         handleCopy(editorState);
                                //       },
                                //     ),
                                //     // Paste
                                //     ContextMenuItem(
                                //       getName: () => 'Paste',
                                //       onPressed: (editorState) {
                                //         handlePaste(editorState);
                                //       },
                                //     ),
                                //   ],
                                // ],
                                // // commandShortcutEvents: [
                                //   tabToAutoCompleteCommand,
                                //   pasteTextWithoutFormattingCommand,
                                //   ...standardCommandShortcutEvents,
                                // ],
                                editorStyle: EditorStyle.mobile(
                                  selectionColor: context.colorScheme.primary.withOpacity(0.3),
                                  cursorColor: context.colorScheme.secondary,
                                  textStyleConfiguration: TextStyleConfiguration(
                                    text: context.textTheme.bodyMedium!.copyWith(color: context.colorScheme.secondary),
                                  ),
                                  dragHandleColor: context.colorScheme.primary,
                                  magnifierSize: const Size(144, 96),
                                  mobileDragHandleBallSize:
                                      Platform.isIOS ? const Size.square(12) : const Size.square(8),
                                  mobileDragHandleLeftExtend: 12.0,
                                  mobileDragHandleWidthExtend: 24.0,
                                  padding: const EdgeInsets.symmetric(horizontal: PaddingConstants.normal),
                                ),
                              ),
                            ),

Expected Behavior

to see context menu items on ios

Operating System

IOS

AppFlowy Editor Version(s)

6.1.0

Screenshots

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions