Set the default whitespace mode to pre-wrap

This CL makes it easier to insert line breaks into text runs.

R=eseidel@chromium.org, eseidel@google.com

Review URL: https://codereview.chromium.org/1221913003.
This commit is contained in:
Adam Barth 2015-07-06 15:44:54 -07:00
parent 668203e7c7
commit 563df9ba75
2 changed files with 15 additions and 15 deletions

View File

@ -13,28 +13,28 @@ PAINT FOR FRAME #2 ----------------------------------------------
2 | | | drawRect(Rect.fromLTRB(0.0, 0.0, 800.0, 600.0), Paint(color:Color(0x7f000000)))
2 | | paintChild RenderPositionedBox at Point(0.0, 0.0)
2 | | | TestPaintingCanvas() constructor: 800.0 x 600.0
2 | | | paintChild RenderPadding at Point(220.0, 206.0)
2 | | | paintChild RenderPadding at Point(220.0, 194.0)
2 | | | | TestPaintingCanvas() constructor: 800.0 x 600.0
2 | | | | paintChild RenderConstrainedBox at Point(260.0, 230.0)
2 | | | | paintChild RenderConstrainedBox at Point(260.0, 218.0)
2 | | | | | TestPaintingCanvas() constructor: 800.0 x 600.0
2 | | | | | drawRRect(Instance of 'RRect', Paint(color:Color(0xffffffff), drawLooper:true))
2 | | | | | paintChild RenderPadding at Point(260.0, 230.0)
2 | | | | | paintChild RenderPadding at Point(260.0, 218.0)
2 | | | | | | TestPaintingCanvas() constructor: 800.0 x 600.0
2 | | | | | | paintChild RenderParagraph at Point(284.0, 254.0)
2 | | | | | | paintChild RenderParagraph at Point(284.0, 242.0)
2 | | | | | | | TestPaintingCanvas() constructor: 800.0 x 600.0
2 | | | | | | | translate(284.0, 254.0)
2 | | | | | | | translate(-284.0, -254.0)
2 | | | | | paintChild RenderPadding at Point(260.0, 282.0)
2 | | | | | | | translate(284.0, 242.0)
2 | | | | | | | translate(-284.0, -242.0)
2 | | | | | paintChild RenderPadding at Point(260.0, 270.0)
2 | | | | | | TestPaintingCanvas() constructor: 800.0 x 600.0
2 | | | | | | paintChild RenderParagraph at Point(284.0, 302.0)
2 | | | | | | paintChild RenderParagraph at Point(284.0, 290.0)
2 | | | | | | | TestPaintingCanvas() constructor: 800.0 x 600.0
2 | | | | | | | translate(284.0, 302.0)
2 | | | | | | | translate(-284.0, -302.0)
2 | | | | | paintChild RenderFlex at Point(260.0, 350.0)
2 | | | | | | | translate(284.0, 290.0)
2 | | | | | | | translate(-284.0, -290.0)
2 | | | | | paintChild RenderFlex at Point(260.0, 362.0)
2 | | | | | | TestPaintingCanvas() constructor: 800.0 x 600.0
2 | | | | | | paintChild RenderParagraph at Point(411.0, 350.0)
2 | | | | | | paintChild RenderParagraph at Point(411.0, 362.0)
2 | | | | | | | TestPaintingCanvas() constructor: 800.0 x 600.0
2 | | | | | | | translate(411.0, 350.0)
2 | | | | | | | translate(-411.0, -350.0)
2 | | | | | | | translate(411.0, 362.0)
2 | | | | | | | translate(-411.0, -362.0)
------------------------------------------------------------------------
PAINTED 2 FRAMES

View File

@ -13,7 +13,7 @@ main() async {
await tester.test(() {
return new Dialog(
title: new Text("I am a title"),
content: new Text("I am some content"),
content: new Text("I am some content\nwith a line break"),
actions: [new Text("I am some actions")]
);
});