Skip to content

MaterialStateMouseCursor.clickable should only show "hand" pointer in Web apps #59576

Open

Description

@JonLatane

The "hand" pointer used on websites has no precedent of being used outside Web apps. The default behavior of MaterialStateMouseCursor.clickable should be to only return SystemMouseCursors.click is the application is running in a web browser.

Use case

All non-web apps built with Flutter.

Proposal

In MaterialStateMouseCursor.clickable, only return the SystemMouseCursors.click cursor if kIsWeb == true.

Activity

  1. added
    a: mouseIssues related to using a mouse or mouse support
    frameworkflutter/packages/flutter repository. See also f: labels.
    platform-webWeb applications specifically
    c: proposalA detailed proposal for a change to Flutter
    c: new featureNothing broken; request for a new capability
    on Jun 17, 2020
  2. HansMuller commented on Jun 17, 2020

    @HansMuller
    Contributor
  3. JonLatane commented on Jun 17, 2020

    @JonLatane
    Author

    This could probably most cleanly be implemented in combination with #59575. I have a WIP PR open for that, really just need to get some tests passing

  4. dkwingsmt commented on Jun 17, 2020

    @dkwingsmt
    Contributor

    I've asked this question to the Flutter Material team before the implementation and the response is that buttons should always display the "click" cursor, even on desktop.

  5. dkwingsmt commented on Jun 17, 2020

    @dkwingsmt
    Contributor

    Anyway, the default decision would not matter as much if this option can be changed in the theming. :)

  6. added
    P2Important issues not at the top of the work list
    on Jun 18, 2020
  7. added
    platform-linuxBuilding on or for Linux specifically
    platform-macosBuilding on or for macOS specifically
    platform-windowsBuilding on or for Windows specifically
    and removed
    platform-webWeb applications specifically
    on Aug 19, 2020
  8. 4 remaining items

  9. added a commit that references this issue on Mar 13, 2023
  10. added
    fyi-macosFor the attention of macOS platform team
    and removed on Jun 5, 2024
  11. flutter-triage-bot commented on Jun 7, 2024

    @flutter-triage-bot

    The triaged-desktop label is irrelevant if there is no team-desktop label or fyi-desktop label.

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

    P2Important issues not at the top of the work lista: desktopRunning on desktopa: mouseIssues related to using a mouse or mouse supportc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.platform-linuxBuilding on or for Linux specificallyplatform-macosBuilding on or for macOS specificallyplatform-windowsBuilding on or for Windows specificallyteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions