Skip to content

Commit

Permalink
optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
hackware1993 committed Sep 6, 2022
1 parent cc2ae0b commit 54d3e8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class ConstraintLayout extends MultiChildRenderObjectWidget {
selfHeight = size!;
}
return _ConstraintRenderBox()
.._rtl = rtl
..childConstraints = childConstraints
.._showLayoutPerformanceOverlay = showLayoutPerformanceOverlay
.._showHelperWidgets = showHelperWidgets
Expand All @@ -124,8 +125,7 @@ class ConstraintLayout extends MultiChildRenderObjectWidget {
.._debugPrintConstraints = debugPrintConstraints
.._width = selfWidth
.._height = selfHeight
.._controller = controller?._copy()
.._rtl = rtl;
.._controller = controller?._copy();
}

@override
Expand All @@ -144,6 +144,7 @@ class ConstraintLayout extends MultiChildRenderObjectWidget {
selfHeight = size!;
}
(renderObject as _ConstraintRenderBox)
..rtl = rtl
..childConstraints = childConstraints
..showLayoutPerformanceOverlay = showLayoutPerformanceOverlay
..showHelperWidgets = showHelperWidgets
Expand All @@ -153,8 +154,7 @@ class ConstraintLayout extends MultiChildRenderObjectWidget {
..debugPrintConstraints = debugPrintConstraints
..width = selfWidth
..height = selfHeight
..controller = controller?._copy()
..rtl = rtl;
..controller = controller?._copy();
}
}

Expand Down

0 comments on commit 54d3e8c

Please sign in to comment.