Skip to content

Add support for preferredSize with context in PreferredSizeWidget #116136

@TahaTesser

Description

@TahaTesser

We should update preferredSize to support BuildContext so it can use theme-based values instead of hard code values.

This will be useful in widgets such as AppBar and TabBar.

Related #111962 #116110

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: fidelityMatching the OEM platforms bettera: qualityA truly polished experiencec: new featureNothing broken; request for a new capabilityf: 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