Skip to content

Optional padding for DropdownMenu's leadingIcon and trailingIcon #135903

@laterdayi

Description

@laterdayi

Is there an existing issue for this?

Steps to reproduce

        dropdownMenuTheme: DropdownMenuThemeData(
          inputDecorationTheme: lightTheme.inputDecorationTheme.copyWith(
            isDense: true,
            border: OutlineInputBorder(borderRadius: BorderRadius.circular(4)),
            contentPadding: const EdgeInsets.symmetric(horizontal: 14, vertical: 4),
          ),
          menuStyle: MenuStyle(
            shape: MaterialStatePropertyAll(RoundedRectangleBorder(borderRadius: BorderRadius.circular(14))),
          ),
        ),

In this case, DropdownMenu will always use 30 radius, and there is no way to customize the rounded corners,The same goes for including contentPadding

How do I adjust the height and rounded corners of the DensedropdownMenuTheme

Expected results

Actual results

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

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