Commit 129238ed authored by Adam Barth's avatar Adam Barth

Merge pull request #1138 from abarth/fewer_settings

Disentangle FontSize from Settings
parents 844cf1fa b89d790a
...@@ -8,6 +8,14 @@ void main() { ...@@ -8,6 +8,14 @@ void main() {
builder.addText('Hello'); builder.addText('Hello');
Paragraph paragraph = builder.build(new ParagraphStyle()); Paragraph paragraph = builder.build(new ParagraphStyle());
expect(paragraph, isNotNull); expect(paragraph, isNotNull);
paragraph.minWidth = 0.0;
paragraph.maxWidth = 800.0;
paragraph.minHeight = 0.0;
paragraph.maxHeight = 600.0;
paragraph.layout(); paragraph.layout();
expect(paragraph.width, isNonZero);
expect(paragraph.height, isNonZero);
}); });
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment