Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
4f729984
Commit
4f729984
authored
Sep 11, 2015
by
Collin Jackson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MultiChildRenderObjectWrapper should take an Iterable instead of a List
parent
2e0d5f92
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
14 deletions
+14
-14
auto_layout.dart
packages/flutter/lib/src/rendering/auto_layout.dart
+1
-1
block.dart
packages/flutter/lib/src/rendering/block.dart
+3
-3
flex.dart
packages/flutter/lib/src/rendering/flex.dart
+1
-1
grid.dart
packages/flutter/lib/src/rendering/grid.dart
+1
-1
object.dart
packages/flutter/lib/src/rendering/object.dart
+1
-1
stack.dart
packages/flutter/lib/src/rendering/stack.dart
+1
-1
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+6
-6
No files found.
packages/flutter/lib/src/rendering/auto_layout.dart
View file @
4f729984
...
...
@@ -126,7 +126,7 @@ class RenderAutoLayout extends RenderBox
RenderBoxContainerDefaultsMixin
<
RenderBox
,
AutoLayoutParentData
>,
_AutoLayoutParamMixin
{
RenderAutoLayout
({
List
<
RenderBox
>
children
})
{
RenderAutoLayout
({
Iterable
<
RenderBox
>
children
})
{
_setupLayoutParameters
(
this
);
_setupEditVariablesInSolver
(
_solver
,
al
.
Priority
.
required
-
1
);
addAll
(
children
);
...
...
packages/flutter/lib/src/rendering/block.dart
View file @
4f729984
...
...
@@ -35,7 +35,7 @@ abstract class RenderBlockBase extends RenderBox with ContainerRenderObjectMixin
RenderBoxContainerDefaultsMixin
<
RenderBox
,
BlockParentData
>
{
RenderBlockBase
({
List
<
RenderBox
>
children
,
Iterable
<
RenderBox
>
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
<
RenderBox
>
children
,
Iterable
<
RenderBox
>
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
<
RenderBox
>
children
Iterable
<
RenderBox
>
children
})
:
_callback
=
callback
,
_totalExtentCallback
=
totalExtentCallback
,
_maxCrossAxisExtentCallback
=
maxCrossAxisDimensionCallback
,
...
...
packages/flutter/lib/src/rendering/flex.dart
View file @
4f729984
...
...
@@ -85,7 +85,7 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin<RenderBox, Fl
RenderBoxContainerDefaultsMixin
<
RenderBox
,
FlexParentData
>
{
RenderFlex
({
List
<
RenderBox
>
children
,
Iterable
<
RenderBox
>
children
,
FlexDirection
direction:
FlexDirection
.
horizontal
,
FlexJustifyContent
justifyContent:
FlexJustifyContent
.
start
,
FlexAlignItems
alignItems:
FlexAlignItems
.
center
,
...
...
packages/flutter/lib/src/rendering/grid.dart
View file @
4f729984
...
...
@@ -45,7 +45,7 @@ class GridMetrics {
class
RenderGrid
extends
RenderBox
with
ContainerRenderObjectMixin
<
RenderBox
,
GridParentData
>,
RenderBoxContainerDefaultsMixin
<
RenderBox
,
GridParentData
>
{
RenderGrid
({
List
<
RenderBox
>
children
,
double
maxChildExtent
})
{
RenderGrid
({
Iterable
<
RenderBox
>
children
,
double
maxChildExtent
})
{
addAll
(
children
);
_maxChildExtent
=
maxChildExtent
;
}
...
...
packages/flutter/lib/src/rendering/object.dart
View file @
4f729984
...
...
@@ -1230,7 +1230,7 @@ abstract class ContainerRenderObjectMixin<ChildType extends RenderObject, Parent
}
/// Add all the children to the end of this render object's child list
void
addAll
(
List
<
ChildType
>
children
)
{
void
addAll
(
Iterable
<
ChildType
>
children
)
{
if
(
children
!=
null
)
for
(
ChildType
child
in
children
)
add
(
child
);
...
...
packages/flutter/lib/src/rendering/stack.dart
View file @
4f729984
...
...
@@ -33,7 +33,7 @@ class StackParentData extends BoxParentData with ContainerParentDataMixin<Render
class
RenderStack
extends
RenderBox
with
ContainerRenderObjectMixin
<
RenderBox
,
StackParentData
>,
RenderBoxContainerDefaultsMixin
<
RenderBox
,
StackParentData
>
{
RenderStack
({
List
<
RenderBox
>
children
Iterable
<
RenderBox
>
children
})
{
addAll
(
children
);
}
...
...
packages/flutter/lib/src/widgets/basic.dart
View file @
4f729984
...
...
@@ -473,7 +473,7 @@ class Container extends Component {
// LAYOUT NODES
class
BlockBody
extends
MultiChildRenderObjectWrapper
{
BlockBody
(
List
<
Widget
>
children
,
{
BlockBody
(
Iterable
<
Widget
>
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
<
Widget
>
children
,
{
Key
key
})
Stack
(
Iterable
<
Widget
>
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
<
Widget
>
children
,
{
Key
key
,
this
.
maxChildExtent
})
Grid
(
Iterable
<
Widget
>
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
<
Widget
>
children
,
{
Flex
(
Iterable
<
Widget
>
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
<
Widget
>
children
,
{
Row
(
Iterable
<
Widget
>
children
,
{
Key
key
,
justifyContent:
FlexJustifyContent
.
start
,
alignItems:
FlexAlignItems
.
center
,
...
...
@@ -624,7 +624,7 @@ class Row extends Flex {
}
class
Column
extends
Flex
{
Column
(
List
<
Widget
>
children
,
{
Column
(
Iterable
<
Widget
>
children
,
{
Key
key
,
justifyContent:
FlexJustifyContent
.
start
,
alignItems:
FlexAlignItems
.
center
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment