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
6
6
performance as Flex and Stack. When facing complex layouts, it provides better performance,
7
7
flexibility, and a very flat code hierarchy than Flex and Stack. Say no to 'nesting hell'.
8
8
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.**
11
11
12
12
** If not necessary, try to be relative to the parent layout, so that you can define less id.**
13
13
14
- Warning:
14
+ ** Warning** :
15
15
For layout performance considerations, constraints are always one-way, and there is no two child
16
16
elements that directly or indirectly restrain each other. Each constraint should describe exactly
17
17
where the child elements are located. Although constraints can only be one-way, you can still better
18
18
handle things that were previously (Android ConstraintLayout) two-way constraints, such as chains.
19
19
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
+
20
24
Anyone who sends you a harassing message, you can send him Flutter code and use nested hell to rule
21
25
him.
22
26
You can’t perform that action at this time.
0 commit comments