Skip to content

Commit bb49eeb

Browse files
author
fbchen
committed
update readme
1 parent 2ac666f commit bb49eeb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,21 @@ No matter how complex the layout is and how deep the constraints are, it has alm
66
performance as Flex and Stack. When facing complex layouts, it provides better performance,
77
flexibility, 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**:
1515
For layout performance considerations, constraints are always one-way, and there is no two child
1616
elements that directly or indirectly restrain each other. Each constraint should describe exactly
1717
where the child elements are located. Although constraints can only be one-way, you can still better
1818
handle 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+
2024
Anyone who sends you a harassing message, you can send him Flutter code and use nested hell to rule
2125
him.
2226

0 commit comments

Comments
 (0)