Skip to content

Add spacing between MenuAnchor and dropdownMenuEntries in DropdownMenu #151524

@jasonkang14

Description

@jasonkang14

Use case

I am trying to build an interface like the attached image using DropdownMenu where there is space between MenuAnchor and dropdownMenuEntries.

Screenshot 2024-07-10 at 4 12 05 PM

Proposal

Would you guys be open to accepting a pull request if i were to add an optional property called spacing to DropdownMenu and add a SizedBox to add a margin between MenuAnchor and dropdownMenuEntries? I think it would look something like below

return _DropdownMenuBody(
          width: widget.width,
          children: <Widget>[
            textField,
            SizedBox(height: spacing),
            for (final Widget item in _initialMenu!) item,
            trailingButton,
            leadingButton,
          ],
        );

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: 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