Advanced Flutter
Q87 / 100

What is RepaintBoundary in Flutter and why is it useful?

Correct! Well done.

Incorrect.

The correct answer is B) A widget that creates a separate compositing layer, isolating repaints to its own subtree and preventing expensive repaints of the rest of the screen

B

Correct Answer

A widget that creates a separate compositing layer, isolating repaints to its own subtree and preventing expensive repaints of the rest of the screen

Explanation

RepaintBoundary creates a separate GPU compositing layer. When the subtree inside it repaints, the rest of the screen is unaffected. Use it around frequently animating widgets (animated overlays, scrolling chat lists) to avoid full-screen repaints.

Progress
87/100