Skip to content

[Proposal] AppBar leadingWidth should be available in AppBarTheme #161301

@gaganyadav80

Description

@gaganyadav80

Use case

In AppBarTheme I can provide the toolbarHeight.
But since app bar leading width uses the constant kToolbarHeight by default it is no longer a square because toolbar height is changed in the theme.

On Design Device (toolbar height 56):
Screenshot 2025-01-08 at 14 21 40

On iPad 13inch (toolbar height scaled to 90 based on custom logic):
Screenshot 2025-01-08 at 14 21 30

Proposal

  1. Either leadingWidth should use toolbar height from theme internally
  2. Or I should be able to provide leadingWidth in AppBarTheme along with toolbarHeight

Metadata

Metadata

Assignees

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