Skip to content

Commit

Permalink
Update for API change (flutter#3176)
Browse files Browse the repository at this point in the history
  • Loading branch information
abarth authored Oct 27, 2016
1 parent 4508530 commit cd14345
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/hello_flutter/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cd14345

Please sign in to comment.