TextPainter RTL (#11888)

This commit is contained in:
Ian Hickson
2017-09-07 16:57:38 -07:00
committed by GitHub
parent f4ccb4b6a4
commit ca7d2d23cf
144 changed files with 2223 additions and 1019 deletions

View File

@@ -104,8 +104,9 @@ void main() {
final RenderParagraph paragraph = new RenderParagraph(
const TextSpan(
style: const TextStyle(color: Colors.black87),
text: "Touch me!"
)
text: "Touch me!",
),
textDirection: TextDirection.ltr,
);
// A stack is a render object that layers its children on top of each other.
// The bottom later is our RenderDots object, and on top of that we show the
@@ -114,7 +115,7 @@ void main() {
children: <RenderBox>[
new RenderDots(),
paragraph,
]
],
);
// The "parentData" field of a render object is controlled by the render
// object's parent render object. Now that we've added the paragraph as a