Skip to content

Enable Copy-toolbar for all widgets #49996

Description

@MrAlek

Use case

On iOS it is a common pattern to be able to long-press content in various form and bring up the same Edit Menu as you get in text fields for copying & other actions.

IMG_40CAC5CF2B14-1

Proposal

I'm proposing the extraction of the current CupertinoTextSelectionToolbar and _TextSelectionToolbar into a showEditMenu function, working just like showMenu for popup menus.

Activity

  1. added
    p: cupertino_uicupertino_ui package in flutter/packages
    frameworkflutter/packages/flutter repository. See also f: labels.
    c: new featureNothing broken; request for a new capability
    on Feb 3, 2020
  2. justinmc commented on Feb 3, 2020

    @justinmc
    Contributor

    Good point. You might be able to do this now by overriding CupertinoTextSelectionMenu, but it wouldn't be easy. And you can use SelectableText to copy text, but it's not the same nice experience like this.

  3. justinmc commented on Mar 16, 2020

    @justinmc
    Contributor

    We should also make sure that this works for images.

  4. MrAlek commented on Mar 16, 2020

    @MrAlek
    ContributorAuthor

    For images I think it makes more sense to use CupertinoContextMenu, like in iMessage. But definitely. If a general solution is found for all widgets, it should work for images too.

  5. justinmc commented on Mar 16, 2020

    @justinmc
    Contributor

    You're right, I guess I was thinking of Android. I just played around with long pressing images in iOS and every app I tried opened a CupertinoContextMenu.

  6. justinmc commented on Jul 14, 2022

    @justinmc
    Contributor

    This will be possible with #107193.

  7. github-actions commented on Nov 11, 2022

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  8. locked as resolved and limited conversation to collaborators on Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions