Skip to content

TextStyle with existing height cannot be copied with height=null #58765

@daohoangson

Description

@daohoangson

Use case

If a TextStyle has some non-null height, it's impossible to make a copy with height=null because of this line:

      height: height ?? this.height,

Proposal

Adding a new param in TextStyle.copyWith should work.

Metadata

Metadata

Labels

Bot is counting down the days until it unassigns the issueP2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions