From c8da37656a8d058087535aae368a453767197c6c Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Fri, 4 May 2018 16:19:05 -0700 Subject: [PATCH] Fix flex_layout_test (#17313) --- examples/layers/rendering/flex_layout.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/layers/rendering/flex_layout.dart b/examples/layers/rendering/flex_layout.dart index 004e74fa62..b05ee58c46 100644 --- a/examples/layers/rendering/flex_layout.dart +++ b/examples/layers/rendering/flex_layout.dart @@ -19,7 +19,7 @@ void main() { textDirection: TextDirection.ltr, ); table.add(new RenderPadding(child: paragraph, padding: const EdgeInsets.only(top: 20.0))); - final RenderFlex row = new RenderFlex(crossAxisAlignment: crossAxisAlignment, textBaseline: TextBaseline.alphabetic); + final RenderFlex row = new RenderFlex(crossAxisAlignment: crossAxisAlignment, textBaseline: TextBaseline.alphabetic, textDirection: TextDirection.ltr); style = const TextStyle(fontSize: 15.0, color: const Color(0xFF000000)); row.add(new RenderDecoratedBox( decoration: const BoxDecoration(color: const Color(0x7FFFCCCC)), @@ -36,7 +36,7 @@ void main() { textDirection: TextDirection.ltr, ), )); - final RenderFlex subrow = new RenderFlex(crossAxisAlignment: crossAxisAlignment, textBaseline: TextBaseline.alphabetic); + final RenderFlex subrow = new RenderFlex(crossAxisAlignment: crossAxisAlignment, textBaseline: TextBaseline.alphabetic, textDirection: TextDirection.ltr); style = const TextStyle(fontSize: 25.0, color: const Color(0xFF000000)); subrow.add(new RenderDecoratedBox( decoration: const BoxDecoration(color: const Color(0x7FCCCCFF)), @@ -65,7 +65,7 @@ void main() { textDirection: TextDirection.ltr, ); table.add(new RenderPadding(child: paragraph, padding: const EdgeInsets.only(top: 20.0))); - final RenderFlex row = new RenderFlex(direction: Axis.horizontal); + final RenderFlex row = new RenderFlex(direction: Axis.horizontal, textDirection: TextDirection.ltr); row.add(new RenderSolidColorBox(const Color(0xFFFFCCCC), desiredSize: const Size(80.0, 60.0))); row.add(new RenderSolidColorBox(const Color(0xFFCCFFCC), desiredSize: const Size(64.0, 60.0))); row.add(new RenderSolidColorBox(const Color(0xFFCCCCFF), desiredSize: const Size(160.0, 60.0))); @@ -83,7 +83,7 @@ void main() { final RenderDecoratedBox root = new RenderDecoratedBox( decoration: const BoxDecoration(color: const Color(0xFFFFFFFF)), - child: new RenderPadding(child: table, padding: const EdgeInsets.symmetric(vertical: 50.0)) + child: new RenderPadding(child: table, padding: const EdgeInsets.symmetric(vertical: 50.0)), ); new RenderingFlutterBinding(root: root);