📱 Flutter
Advanced
What is Flutter's rendering pipeline order?
Answer
Flutter's rendering pipeline executes in this order each frame: Build → Layout → Paint → Composite. In the Build phase, Flutter calls build() on dirty widgets to produce the widget tree. In the Layout phase, RenderObjects receive constraints from their parents, calculate their sizes, and position their children. In the Paint phase, RenderObjects paint to their Canvas layers. Finally, in the Composite phase, the GPU takes the painted layers and composites them into the final frame displayed on screen. Understanding this pipeline helps you optimize at the right stage.
Previous
What is the difference between ValueKey, ObjectKey, and UniqueKey?
Next
What is RepaintBoundary and when should you use it?