From 2fe5020aae6ef9ee792cf7d33a4cae35c41eb126 Mon Sep 17 00:00:00 2001 From: Rakshak Raghavan Date: Fri, 4 Oct 2019 11:20:17 +0800 Subject: [PATCH] added textDirection RichText widgets require a Directionality widget ancestor. Added textDirection to the Text Widgits showing the selection. --- docs/flutter/example/behaviors/selection_callback_example.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/flutter/example/behaviors/selection_callback_example.md b/docs/flutter/example/behaviors/selection_callback_example.md index 4629b48cc..cee5f9b5a 100644 --- a/docs/flutter/example/behaviors/selection_callback_example.md +++ b/docs/flutter/example/behaviors/selection_callback_example.md @@ -129,10 +129,10 @@ class _SelectionCallbackState extends State { if (_time != null) { children.add(new Padding( padding: new EdgeInsets.only(top: 5.0), - child: new Text(_time.toString()))); + child: new Text(_time.toString(), textDirection: TextDirection.ltr))); } _measures?.forEach((String series, num value) { - children.add(new Text('${series}: ${value}')); + children.add(new Text('${series}: ${value}', textDirection: TextDirection.ltr)); }); return new Column(children: children);