From a052842360f84b4113195f9e40786e3e57bf1a6a Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Tue, 3 Nov 2015 11:01:38 -0800 Subject: [PATCH] Adds FlexJustifyContent.collapse --- packages/flutter/lib/src/rendering/flex.dart | 5 +- packages/unit/test/widget/flex_test.dart | 62 ++++++++++++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/rendering/flex.dart b/packages/flutter/lib/src/rendering/flex.dart index 5d32f41c99..70ce5a7bac 100644 --- a/packages/flutter/lib/src/rendering/flex.dart +++ b/packages/flutter/lib/src/rendering/flex.dart @@ -46,6 +46,8 @@ enum FlexJustifyContent { spaceBetween, /// Place the free space evenly between the children as well as before and after the first and last child spaceAround, + /// Do not expand to fill the free space. None of the children may specify a flex factor. + collapse, } /// How the children should be placed along the cross axis in a flex layout @@ -337,7 +339,7 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin