Skip to content

Commit 54d3e8c

Browse files
committed
optimize code
1 parent cc2ae0b commit 54d3e8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/src/core.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ class ConstraintLayout extends MultiChildRenderObjectWidget {
115115
selfHeight = size!;
116116
}
117117
return _ConstraintRenderBox()
118+
.._rtl = rtl
118119
..childConstraints = childConstraints
119120
.._showLayoutPerformanceOverlay = showLayoutPerformanceOverlay
120121
.._showHelperWidgets = showHelperWidgets
@@ -124,8 +125,7 @@ class ConstraintLayout extends MultiChildRenderObjectWidget {
124125
.._debugPrintConstraints = debugPrintConstraints
125126
.._width = selfWidth
126127
.._height = selfHeight
127-
.._controller = controller?._copy()
128-
.._rtl = rtl;
128+
.._controller = controller?._copy();
129129
}
130130

131131
@override
@@ -144,6 +144,7 @@ class ConstraintLayout extends MultiChildRenderObjectWidget {
144144
selfHeight = size!;
145145
}
146146
(renderObject as _ConstraintRenderBox)
147+
..rtl = rtl
147148
..childConstraints = childConstraints
148149
..showLayoutPerformanceOverlay = showLayoutPerformanceOverlay
149150
..showHelperWidgets = showHelperWidgets
@@ -153,8 +154,7 @@ class ConstraintLayout extends MultiChildRenderObjectWidget {
153154
..debugPrintConstraints = debugPrintConstraints
154155
..width = selfWidth
155156
..height = selfHeight
156-
..controller = controller?._copy()
157-
..rtl = rtl;
157+
..controller = controller?._copy();
158158
}
159159
}
160160

0 commit comments

Comments
 (0)