Re-enable use of ParagraphConstrains const ctor (#26990)
All embedders of Flutter within Google have all been updated to an
engine version that includes the const constructor added in
flutter/engine#7346 and rolled into the framework in
flutter/flutter#26252.
This reverts commit 88b77a7d0f.
This fixes https://github.com/flutter/flutter/issues/26390.
This commit is contained in:
@@ -84,9 +84,7 @@ void main() {
|
||||
// Next, we supply a width that the text is permitted to occupy and we ask
|
||||
// the paragraph to the visual position of each its glyphs as well as its
|
||||
// overall size, subject to its sizing constraints.
|
||||
// TODO(cbracken): use const constructor. https://github.com/flutter/flutter/issues/26390
|
||||
// ignore:prefer_const_constructors
|
||||
..layout(ui.ParagraphConstraints(width: 180.0));
|
||||
..layout(const ui.ParagraphConstraints(width: 180.0));
|
||||
|
||||
// Finally, we register our beginFrame callback and kick off the first frame.
|
||||
ui.window.onBeginFrame = beginFrame;
|
||||
|
||||
Reference in New Issue
Block a user