diff --git a/examples/hello_flutter/lib/main.dart b/examples/hello_flutter/lib/main.dart index 475eb146d67cc..66a61254d77c7 100644 --- a/examples/hello_flutter/lib/main.dart +++ b/examples/hello_flutter/lib/main.dart @@ -12,9 +12,9 @@ void beginFrame(Duration timeStamp) { final ui.Size physicalSize = ui.window.physicalSize; final ui.Size logicalSize = physicalSize / devicePixelRatio; - final ui.ParagraphBuilder paragraphBuilder = new ui.ParagraphBuilder() + final ui.ParagraphBuilder paragraphBuilder = new ui.ParagraphBuilder(new ui.ParagraphStyle()) ..addText('Hello, world.'); - final ui.Paragraph paragraph = paragraphBuilder.build(new ui.ParagraphStyle()) + final ui.Paragraph paragraph = paragraphBuilder.build() ..layout(new ui.ParagraphConstraints(width: logicalSize.width)); final ui.Rect physicalBounds = ui.Point.origin & physicalSize;