Skip to content

[NavigationDrawer] Allow changing the padding of drawer items #121662

@TEMPAorz

Description

@TEMPAorz

I want to change the padding on the left and right sides of an element, but cannot do so because they are fixed values.

I would like to be able to change it dynamically or change it from the theme.

FYI

In Material 3, it is "Active indicator padding
https://m3.material.io/components/navigation-drawer/specs#c58e6054-2d24-49eb-bf33-5aafa379e0cf

Problem point

padding: const EdgeInsets.symmetric(horizontal: 12.0),

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions