Skip to content

Copy/Paste menu should disable Paste if clipboard is empty #4355

Closed

Description

@jimbeveridge

When Flutter shows the Copy/Paste toolbar, the Paste option is available even if the clipboard is empty. (I tested this in the codelab.) According to the Material Design Spec:

Menu items which are relevant but need certain conditions to be met may be disabled.

Although the spec says "MAY", I've never seen an app that allows you to tap Paste if the clipboard is empty.

Activity

  1. added
    a: text inputEntering text in a text field or keyboard related problems
    on Jun 3, 2016
  2. abarth commented on Jun 3, 2016

    @abarth
    Contributor
  3. modified the milestone: on Jul 19, 2016
  4. removed this from the milestone on Aug 22, 2016
  5. modified the milestone: on Sep 12, 2016
  6. modified the milestones: , on Jan 30, 2017
  7. modified the milestones: , 3: Current Milestone on Oct 24, 2017
  8. Hixie commented on Oct 24, 2017

    @Hixie
    Contributor

    Finding out the state is something you can only do asynchronously, so we should delay building this UI until we know.

  9. added
    p: material_uimaterial_ui package in flutter/packages
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: cupertino_uicupertino_ui package in flutter/packages
    on Oct 24, 2017
  10. modified the milestones: 3: Current Milestone, on Oct 24, 2017
  11. Hixie commented on Feb 3, 2020

    @Hixie
    Contributor
  12. justinmc commented on Feb 3, 2020

    @justinmc
    Contributor

    I'll add this to my list of issues. Looks like there is a TODO in the code about this.

  13. self-assigned this
    on Apr 20, 2020
  14. justinmc commented on May 8, 2020

    @justinmc
    Contributor

    Closing with #56689 and #54902.

  15. github-actions commented on Aug 17, 2021

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

  16. locked as resolved and limited conversation to collaborators on Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

a: text inputEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagesp: material_uimaterial_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