File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,21 @@ No matter how complex the layout is and how deep the constraints are, it has alm
66performance as Flex and Stack. When facing complex layouts, it provides better performance,
77flexibility, and a very flat code hierarchy than Flex and Stack. Say no to 'nesting hell'.
88
9- ** It is recommended to use ConstraintLayout at the top level. For moderately complex pages, frame
10- rate up to 500 fps.**
9+ ** It is recommended to use ConstraintLayout at the top level. For medium complex layout, layout and
10+ drawing total time within 5 milliseconds, the frame rate can be easily reached 200 fps.**
1111
1212** If not necessary, try to be relative to the parent layout, so that you can define less id.**
1313
14- Warning:
14+ ** Warning** :
1515For layout performance considerations, constraints are always one-way, and there is no two child
1616elements that directly or indirectly restrain each other. Each constraint should describe exactly
1717where the child elements are located. Although constraints can only be one-way, you can still better
1818handle things that were previously (Android ConstraintLayout) two-way constraints, such as chains.
1919
20+ ** Warning** :
21+ When the layout is complex, if the child elements need to be repainted frequently, it is recommended
22+ to use RepaintBoundary to improve performance.
23+
2024Anyone who sends you a harassing message, you can send him Flutter code and use nested hell to rule
2125him.
2226
You can’t perform that action at this time.
0 commit comments