Skip to main content
InterviewHubPRO
Section Overview
Q20

Question 20 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

40%
Flutter & Dart (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

What is `RepaintBoundary` and why is it used for animation performance?

senior LevelFormsPerformanceSystem Design

In Simple Words: By default, when a child widget repaints, its parent and sibling widgets on the same canvas may also be forced to repaint:

  • Wrapping an animated widget in RepaintBoundary isolates it into a separate, cached display list layer.
  • When the animation runs, only the isolated layer repaints; the rest of the screen remains untouched, saving massive GPU rasterization time.