Skip to content

Use const constructor for ParagraphConstraints #26390

@cbracken

Description

@cbracken

Usages of ParagraphConstraints (from dart:ui) whose constructor could be const as of flutter/engine#7346 are currently marked // ignore:prefer_const_constructors in the framework until all Google-internal embedders have been updated to an engine version that includes the above change. These were initially updated in engine roll #26252, but broke internal embedders so were reverted in #26392.

We should re-enable use of the const constructor in those cases once internal embedders are updated.

Metadata

Metadata

Assignees

Labels

frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions