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
fd8695b6
Commit
fd8695b6
authored
Mar 11, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2593 from abarth/more_dots
Use the .. pattern more in updateRenderObject
parents
b0542344
10591730
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 @
fd8695b6
...
...
@@ -733,8 +733,9 @@ class IntrinsicWidth extends OneChildRenderObjectWidget {
RenderIntrinsicWidth
createRenderObject
()
=>
new
RenderIntrinsicWidth
(
stepWidth:
stepWidth
,
stepHeight:
stepHeight
);
void
updateRenderObject
(
RenderIntrinsicWidth
renderObject
,
IntrinsicWidth
oldWidget
)
{
renderObject
.
stepWidth
=
stepWidth
;
renderObject
.
stepHeight
=
stepHeight
;
renderObject
..
stepWidth
=
stepWidth
..
stepHeight
=
stepHeight
;
}
}
...
...
@@ -768,8 +769,9 @@ class Baseline extends OneChildRenderObjectWidget {
RenderBaseline
createRenderObject
()
=>
new
RenderBaseline
(
baseline:
baseline
,
baselineType:
baselineType
);
void
updateRenderObject
(
RenderBaseline
renderObject
,
Baseline
oldWidget
)
{
renderObject
.
baseline
=
baseline
;
renderObject
.
baselineType
=
baselineType
;
renderObject
..
baseline
=
baseline
..
baselineType
=
baselineType
;
}
}
...
...
@@ -1036,8 +1038,9 @@ class IndexedStack extends StackRenderObjectWidgetBase {
void
updateRenderObject
(
RenderIndexedStack
renderObject
,
IndexedStack
oldWidget
)
{
super
.
updateRenderObject
(
renderObject
,
oldWidget
);
renderObject
.
index
=
index
;
renderObject
.
alignment
=
alignment
;
renderObject
..
index
=
index
..
alignment
=
alignment
;
}
}
...
...
@@ -1326,10 +1329,11 @@ class Flex extends MultiChildRenderObjectWidget {
RenderFlex
createRenderObject
()
=>
new
RenderFlex
(
direction:
direction
,
justifyContent:
justifyContent
,
alignItems:
alignItems
,
textBaseline:
textBaseline
);
void
updateRenderObject
(
RenderFlex
renderObject
,
Flex
oldWidget
)
{
renderObject
.
direction
=
direction
;
renderObject
.
justifyContent
=
justifyContent
;
renderObject
.
alignItems
=
alignItems
;
renderObject
.
textBaseline
=
textBaseline
;
renderObject
..
direction
=
direction
..
justifyContent
=
justifyContent
..
alignItems
=
alignItems
..
textBaseline
=
textBaseline
;
}
}
...
...
@@ -1576,15 +1580,16 @@ class RawImage extends LeafRenderObjectWidget {
);
void
updateRenderObject
(
RenderImage
renderObject
,
RawImage
oldWidget
)
{
renderObject
.
image
=
image
;
renderObject
.
width
=
width
;
renderObject
.
height
=
height
;
renderObject
.
scale
=
scale
;
renderObject
.
color
=
color
;
renderObject
.
alignment
=
alignment
;
renderObject
.
fit
=
fit
;
renderObject
.
repeat
=
repeat
;
renderObject
.
centerSlice
=
centerSlice
;
renderObject
..
image
=
image
..
width
=
width
..
height
=
height
..
scale
=
scale
..
color
=
color
..
alignment
=
alignment
..
fit
=
fit
..
repeat
=
repeat
..
centerSlice
=
centerSlice
;
}
void
debugFillDescription
(
List
<
String
>
description
)
{
...
...
@@ -2113,11 +2118,12 @@ class Listener extends OneChildRenderObjectWidget {
);
void
updateRenderObject
(
RenderPointerListener
renderObject
,
Listener
oldWidget
)
{
renderObject
.
onPointerDown
=
onPointerDown
;
renderObject
.
onPointerMove
=
onPointerMove
;
renderObject
.
onPointerUp
=
onPointerUp
;
renderObject
.
onPointerCancel
=
onPointerCancel
;
renderObject
.
behavior
=
behavior
;
renderObject
..
onPointerDown
=
onPointerDown
..
onPointerMove
=
onPointerMove
..
onPointerUp
=
onPointerUp
..
onPointerCancel
=
onPointerCancel
..
behavior
=
behavior
;
}
void
debugFillDescription
(
List
<
String
>
description
)
{
...
...
@@ -2175,8 +2181,9 @@ class IgnorePointer extends OneChildRenderObjectWidget {
);
void
updateRenderObject
(
RenderIgnorePointer
renderObject
,
IgnorePointer
oldWidget
)
{
renderObject
.
ignoring
=
ignoring
;
renderObject
.
ignoringSemantics
=
ignoringSemantics
;
renderObject
..
ignoring
=
ignoring
..
ignoringSemantics
=
ignoringSemantics
;
}
}
...
...
@@ -2225,9 +2232,10 @@ class Semantics extends OneChildRenderObjectWidget {
);
void
updateRenderObject
(
RenderSemanticAnnotations
renderObject
,
Semantics
oldWidget
)
{
renderObject
.
container
=
container
;
renderObject
.
checked
=
checked
;
renderObject
.
label
=
label
;
renderObject
..
container
=
container
..
checked
=
checked
..
label
=
label
;
}
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