Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paste button isn't shown on mobile web #188

Open
agordeev opened this issue Jun 15, 2024 · 1 comment
Open

Paste button isn't shown on mobile web #188

agordeev opened this issue Jun 15, 2024 · 1 comment
Assignees

Comments

@agordeev
Copy link

agordeev commented Jun 15, 2024

Tested on example app.

On iOS, the long press shows the paste button.

On web iOS, the long press does nothing.

iOS app (works as expected):

Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-06-15.at.13.15.46.mp4

iOS web app (doesn't work as expected):

RPReplay_Final1718450176.MP4
@Tkko
Copy link
Owner

Tkko commented Aug 12, 2024

Hi @agordeev, Sorry for the late reply, on the web you have to disable the default context menu

  @override
  void initState() {
    super.initState();
    // On web, disable the browser's context menu since this example uses a custom
    // Flutter-rendered context menu.
    if (kIsWeb) {
      BrowserContextMenu.disableContextMenu();
    }
  }

  @override
  void dispose() {
    if (kIsWeb) {
      BrowserContextMenu.enableContextMenu();
    }
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants