From e0515f310b92f40c740de108f8979f1f3cbcc909 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Thu, 27 Oct 2016 12:50:12 -0700 Subject: [PATCH] Tweaks to the Flex documentation. (#6547) --- packages/flutter/lib/src/widgets/basic.dart | 41 +++++++++++++++---- .../flutter/test/widget/parent_data_test.dart | 2 +- 2 files changed, 35 insertions(+), 8 deletions(-) diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index c913e0a3e9..c2ec0ab096 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -1879,15 +1879,30 @@ class GridPlacementData extends ParentDataWidget { - /// Creates a widget that controls how a child of a [Flex], [Row], or [Column] flexes. + /// Creates a widget that controls how a child of a [Row], [Column], or [Flex] + /// flexes. Flexible({ Key key, this.flex: 1, diff --git a/packages/flutter/test/widget/parent_data_test.dart b/packages/flutter/test/widget/parent_data_test.dart index f4dd693271..928a9db61c 100644 --- a/packages/flutter/test/widget/parent_data_test.dart +++ b/packages/flutter/test/widget/parent_data_test.dart @@ -265,7 +265,7 @@ void main() { await tester.pumpWidget( new Container( - child: new Flex( + child: new Row( children: [ new Positioned( top: 6.0,