diff --git a/sky/packages/sky/lib/src/rendering/auto_layout.dart b/sky/packages/sky/lib/src/rendering/auto_layout.dart index 150f7f4f7e7..2dcb09a042c 100644 --- a/sky/packages/sky/lib/src/rendering/auto_layout.dart +++ b/sky/packages/sky/lib/src/rendering/auto_layout.dart @@ -126,7 +126,7 @@ class RenderAutoLayout extends RenderBox RenderBoxContainerDefaultsMixin, _AutoLayoutParamMixin { - RenderAutoLayout({ List children }) { + RenderAutoLayout({ Iterable children }) { _setupLayoutParameters(this); _setupEditVariablesInSolver(_solver, al.Priority.required - 1); addAll(children); diff --git a/sky/packages/sky/lib/src/rendering/block.dart b/sky/packages/sky/lib/src/rendering/block.dart index 91e49a9d19f..d12c2af4f79 100644 --- a/sky/packages/sky/lib/src/rendering/block.dart +++ b/sky/packages/sky/lib/src/rendering/block.dart @@ -35,7 +35,7 @@ abstract class RenderBlockBase extends RenderBox with ContainerRenderObjectMixin RenderBoxContainerDefaultsMixin { RenderBlockBase({ - List children, + Iterable children, BlockDirection direction: BlockDirection.vertical, double itemExtent, double minExtent: 0.0 @@ -123,7 +123,7 @@ abstract class RenderBlockBase extends RenderBox with ContainerRenderObjectMixin class RenderBlock extends RenderBlockBase { RenderBlock({ - List children, + Iterable children, BlockDirection direction: BlockDirection.vertical, double itemExtent, double minExtent: 0.0 @@ -231,7 +231,7 @@ class RenderBlockViewport extends RenderBlockBase { double itemExtent, double minExtent: 0.0, double startOffset: 0.0, - List children + Iterable children }) : _callback = callback, _totalExtentCallback = totalExtentCallback, _maxCrossAxisExtentCallback = maxCrossAxisDimensionCallback, diff --git a/sky/packages/sky/lib/src/rendering/flex.dart b/sky/packages/sky/lib/src/rendering/flex.dart index a7e7341d64a..369ee7252ad 100644 --- a/sky/packages/sky/lib/src/rendering/flex.dart +++ b/sky/packages/sky/lib/src/rendering/flex.dart @@ -85,7 +85,7 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin { RenderFlex({ - List children, + Iterable children, FlexDirection direction: FlexDirection.horizontal, FlexJustifyContent justifyContent: FlexJustifyContent.start, FlexAlignItems alignItems: FlexAlignItems.center, diff --git a/sky/packages/sky/lib/src/rendering/grid.dart b/sky/packages/sky/lib/src/rendering/grid.dart index 4431e0f5e13..2361f3be873 100644 --- a/sky/packages/sky/lib/src/rendering/grid.dart +++ b/sky/packages/sky/lib/src/rendering/grid.dart @@ -45,7 +45,7 @@ class GridMetrics { class RenderGrid extends RenderBox with ContainerRenderObjectMixin, RenderBoxContainerDefaultsMixin { - RenderGrid({ List children, double maxChildExtent }) { + RenderGrid({ Iterable children, double maxChildExtent }) { addAll(children); _maxChildExtent = maxChildExtent; } diff --git a/sky/packages/sky/lib/src/rendering/object.dart b/sky/packages/sky/lib/src/rendering/object.dart index 9c902b62e79..a9b2045d88b 100644 --- a/sky/packages/sky/lib/src/rendering/object.dart +++ b/sky/packages/sky/lib/src/rendering/object.dart @@ -1230,7 +1230,7 @@ abstract class ContainerRenderObjectMixin children) { + void addAll(Iterable children) { if (children != null) for (ChildType child in children) add(child); diff --git a/sky/packages/sky/lib/src/rendering/stack.dart b/sky/packages/sky/lib/src/rendering/stack.dart index 584e4d89025..6ad28468440 100644 --- a/sky/packages/sky/lib/src/rendering/stack.dart +++ b/sky/packages/sky/lib/src/rendering/stack.dart @@ -33,7 +33,7 @@ class StackParentData extends BoxParentData with ContainerParentDataMixin, RenderBoxContainerDefaultsMixin { RenderStack({ - List children + Iterable children }) { addAll(children); } diff --git a/sky/packages/sky/lib/src/widgets/basic.dart b/sky/packages/sky/lib/src/widgets/basic.dart index 78c88b8262c..ce6bc6b7a27 100644 --- a/sky/packages/sky/lib/src/widgets/basic.dart +++ b/sky/packages/sky/lib/src/widgets/basic.dart @@ -473,7 +473,7 @@ class Container extends Component { // LAYOUT NODES class BlockBody extends MultiChildRenderObjectWrapper { - BlockBody(List children, { + BlockBody(Iterable children, { Key key, this.direction: BlockDirection.vertical }) : super(key: key, children: children) { @@ -492,7 +492,7 @@ class BlockBody extends MultiChildRenderObjectWrapper { } class Stack extends MultiChildRenderObjectWrapper { - Stack(List children, { Key key }) + Stack(Iterable children, { Key key }) : super(key: key, children: children); RenderStack createNode() => new RenderStack(); @@ -555,7 +555,7 @@ class Positioned extends ParentDataNode { } class Grid extends MultiChildRenderObjectWrapper { - Grid(List children, { Key key, this.maxChildExtent }) + Grid(Iterable children, { Key key, this.maxChildExtent }) : super(key: key, children: children) { assert(maxChildExtent != null); } @@ -572,7 +572,7 @@ class Grid extends MultiChildRenderObjectWrapper { } class Flex extends MultiChildRenderObjectWrapper { - Flex(List children, { + Flex(Iterable children, { Key key, this.direction: FlexDirection.horizontal, this.justifyContent: FlexJustifyContent.start, @@ -615,7 +615,7 @@ class Flex extends MultiChildRenderObjectWrapper { } class Row extends Flex { - Row(List children, { + Row(Iterable children, { Key key, justifyContent: FlexJustifyContent.start, alignItems: FlexAlignItems.center, @@ -624,7 +624,7 @@ class Row extends Flex { } class Column extends Flex { - Column(List children, { + Column(Iterable children, { Key key, justifyContent: FlexJustifyContent.start, alignItems: FlexAlignItems.center,