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
10591730
Commit
10591730
authored
Mar 10, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the .. pattern more in updateRenderObject
parent
b0542344
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
29 deletions
+37
-29
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+37
-29
No files found.
packages/flutter/lib/src/widgets/basic.dart
View file @
10591730
...
@@ -733,8 +733,9 @@ class IntrinsicWidth extends OneChildRenderObjectWidget {
...
@@ -733,8 +733,9 @@ class IntrinsicWidth extends OneChildRenderObjectWidget {
RenderIntrinsicWidth
createRenderObject
()
=>
new
RenderIntrinsicWidth
(
stepWidth:
stepWidth
,
stepHeight:
stepHeight
);
RenderIntrinsicWidth
createRenderObject
()
=>
new
RenderIntrinsicWidth
(
stepWidth:
stepWidth
,
stepHeight:
stepHeight
);
void
updateRenderObject
(
RenderIntrinsicWidth
renderObject
,
IntrinsicWidth
oldWidget
)
{
void
updateRenderObject
(
RenderIntrinsicWidth
renderObject
,
IntrinsicWidth
oldWidget
)
{
renderObject
.
stepWidth
=
stepWidth
;
renderObject
renderObject
.
stepHeight
=
stepHeight
;
..
stepWidth
=
stepWidth
..
stepHeight
=
stepHeight
;
}
}
}
}
...
@@ -768,8 +769,9 @@ class Baseline extends OneChildRenderObjectWidget {
...
@@ -768,8 +769,9 @@ class Baseline extends OneChildRenderObjectWidget {
RenderBaseline
createRenderObject
()
=>
new
RenderBaseline
(
baseline:
baseline
,
baselineType:
baselineType
);
RenderBaseline
createRenderObject
()
=>
new
RenderBaseline
(
baseline:
baseline
,
baselineType:
baselineType
);
void
updateRenderObject
(
RenderBaseline
renderObject
,
Baseline
oldWidget
)
{
void
updateRenderObject
(
RenderBaseline
renderObject
,
Baseline
oldWidget
)
{
renderObject
.
baseline
=
baseline
;
renderObject
renderObject
.
baselineType
=
baselineType
;
..
baseline
=
baseline
..
baselineType
=
baselineType
;
}
}
}
}
...
@@ -1036,8 +1038,9 @@ class IndexedStack extends StackRenderObjectWidgetBase {
...
@@ -1036,8 +1038,9 @@ class IndexedStack extends StackRenderObjectWidgetBase {
void
updateRenderObject
(
RenderIndexedStack
renderObject
,
IndexedStack
oldWidget
)
{
void
updateRenderObject
(
RenderIndexedStack
renderObject
,
IndexedStack
oldWidget
)
{
super
.
updateRenderObject
(
renderObject
,
oldWidget
);
super
.
updateRenderObject
(
renderObject
,
oldWidget
);
renderObject
.
index
=
index
;
renderObject
renderObject
.
alignment
=
alignment
;
..
index
=
index
..
alignment
=
alignment
;
}
}
}
}
...
@@ -1326,10 +1329,11 @@ class Flex extends MultiChildRenderObjectWidget {
...
@@ -1326,10 +1329,11 @@ class Flex extends MultiChildRenderObjectWidget {
RenderFlex
createRenderObject
()
=>
new
RenderFlex
(
direction:
direction
,
justifyContent:
justifyContent
,
alignItems:
alignItems
,
textBaseline:
textBaseline
);
RenderFlex
createRenderObject
()
=>
new
RenderFlex
(
direction:
direction
,
justifyContent:
justifyContent
,
alignItems:
alignItems
,
textBaseline:
textBaseline
);
void
updateRenderObject
(
RenderFlex
renderObject
,
Flex
oldWidget
)
{
void
updateRenderObject
(
RenderFlex
renderObject
,
Flex
oldWidget
)
{
renderObject
.
direction
=
direction
;
renderObject
renderObject
.
justifyContent
=
justifyContent
;
..
direction
=
direction
renderObject
.
alignItems
=
alignItems
;
..
justifyContent
=
justifyContent
renderObject
.
textBaseline
=
textBaseline
;
..
alignItems
=
alignItems
..
textBaseline
=
textBaseline
;
}
}
}
}
...
@@ -1576,15 +1580,16 @@ class RawImage extends LeafRenderObjectWidget {
...
@@ -1576,15 +1580,16 @@ class RawImage extends LeafRenderObjectWidget {
);
);
void
updateRenderObject
(
RenderImage
renderObject
,
RawImage
oldWidget
)
{
void
updateRenderObject
(
RenderImage
renderObject
,
RawImage
oldWidget
)
{
renderObject
.
image
=
image
;
renderObject
renderObject
.
width
=
width
;
..
image
=
image
renderObject
.
height
=
height
;
..
width
=
width
renderObject
.
scale
=
scale
;
..
height
=
height
renderObject
.
color
=
color
;
..
scale
=
scale
renderObject
.
alignment
=
alignment
;
..
color
=
color
renderObject
.
fit
=
fit
;
..
alignment
=
alignment
renderObject
.
repeat
=
repeat
;
..
fit
=
fit
renderObject
.
centerSlice
=
centerSlice
;
..
repeat
=
repeat
..
centerSlice
=
centerSlice
;
}
}
void
debugFillDescription
(
List
<
String
>
description
)
{
void
debugFillDescription
(
List
<
String
>
description
)
{
...
@@ -2113,11 +2118,12 @@ class Listener extends OneChildRenderObjectWidget {
...
@@ -2113,11 +2118,12 @@ class Listener extends OneChildRenderObjectWidget {
);
);
void
updateRenderObject
(
RenderPointerListener
renderObject
,
Listener
oldWidget
)
{
void
updateRenderObject
(
RenderPointerListener
renderObject
,
Listener
oldWidget
)
{
renderObject
.
onPointerDown
=
onPointerDown
;
renderObject
renderObject
.
onPointerMove
=
onPointerMove
;
..
onPointerDown
=
onPointerDown
renderObject
.
onPointerUp
=
onPointerUp
;
..
onPointerMove
=
onPointerMove
renderObject
.
onPointerCancel
=
onPointerCancel
;
..
onPointerUp
=
onPointerUp
renderObject
.
behavior
=
behavior
;
..
onPointerCancel
=
onPointerCancel
..
behavior
=
behavior
;
}
}
void
debugFillDescription
(
List
<
String
>
description
)
{
void
debugFillDescription
(
List
<
String
>
description
)
{
...
@@ -2175,8 +2181,9 @@ class IgnorePointer extends OneChildRenderObjectWidget {
...
@@ -2175,8 +2181,9 @@ class IgnorePointer extends OneChildRenderObjectWidget {
);
);
void
updateRenderObject
(
RenderIgnorePointer
renderObject
,
IgnorePointer
oldWidget
)
{
void
updateRenderObject
(
RenderIgnorePointer
renderObject
,
IgnorePointer
oldWidget
)
{
renderObject
.
ignoring
=
ignoring
;
renderObject
renderObject
.
ignoringSemantics
=
ignoringSemantics
;
..
ignoring
=
ignoring
..
ignoringSemantics
=
ignoringSemantics
;
}
}
}
}
...
@@ -2225,9 +2232,10 @@ class Semantics extends OneChildRenderObjectWidget {
...
@@ -2225,9 +2232,10 @@ class Semantics extends OneChildRenderObjectWidget {
);
);
void
updateRenderObject
(
RenderSemanticAnnotations
renderObject
,
Semantics
oldWidget
)
{
void
updateRenderObject
(
RenderSemanticAnnotations
renderObject
,
Semantics
oldWidget
)
{
renderObject
.
container
=
container
;
renderObject
renderObject
.
checked
=
checked
;
..
container
=
container
renderObject
.
label
=
label
;
..
checked
=
checked
..
label
=
label
;
}
}
void
debugFillDescription
(
List
<
String
>
description
)
{
void
debugFillDescription
(
List
<
String
>
description
)
{
...
...
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