TextPainter RTL (#12791)

This commit is contained in:
Ian Hickson
2017-10-31 10:39:34 -07:00
committed by GitHub
parent 19227a9988
commit e1174eb0f2
11 changed files with 1822 additions and 18 deletions

View File

@@ -22,9 +22,9 @@ ui.Picture paint(ui.Rect paintBounds) {
canvas.drawRect(new ui.Rect.fromLTRB(-100.0, -100.0, 100.0, 100.0),
new ui.Paint()..color = const ui.Color.fromARGB(255, 0, 255, 0));
// The paint method of Pargraph draws the contents of the paragraph unto the
// The paint method of Paragraph draws the contents of the paragraph onto the
// given canvas.
canvas.drawParagraph(paragraph, new ui.Offset(paragraph.width / -2.0, (paragraph.width / 2.0) - 125));
canvas.drawParagraph(paragraph, new ui.Offset(-paragraph.width / 2.0, (paragraph.width / 2.0) - 125.0));
return recorder.endRecording();
}