Skip to content

Add support for onLongPress and onHover callbacks in the IconButton widget #159972

@ekuleshov

Description

@ekuleshov

Use case

Many Flutter widgets, including TextButton, ListTile, etc, support onPressed, onLongPress and onHover callbacks out of the box. However the IconButton widget only support the onPressed callback.

Proposal

It would be nice to have onLongPress and onHover callback supported in the IconButton widget.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: gesturesflutter/packages/flutter/gestures repository.f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions