Skip to content

add padding to DropdownButton #115793

@davidskelly

Description

@davidskelly

Use case

Inside the implementation of DropdownButton is an Inkwell. This Inkwell has a hitbox that does not cover the entire area of the button. A user can click on the button but the click is not handled.

Proposal

Example - when implementing a custom dropdown that looks like this:
Screenshot from 2022-11-21 16-20-15

The clickable hitbox looks like this:
Screenshot from 2022-11-21 16-19-41

The desired hitbox should look like this:
Screenshot from 2022-11-21 16-20-02

To accomplish this, add Padding to the Inkwell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions