Andrea Bizzotto πŸ‡ΊπŸ‡¦ @codewithandrea.com Β· Apr 24

Did you know? debugRepaintRainbowEnabled helps you discover widgets/areas that unexpectedly repaint in your app. Here's how to set it πŸ‘‡

4 likes 1 replies

?

Replies

Andrea Bizzotto πŸ‡ΊπŸ‡¦ Β· Apr 24

If you discover widgets that repaint when they shouldn't, wrap them with RepaintBoundary. This can improve rendering performance, but only use it when necessary (RepaintBoundary has some extra CPU/memory cost). Learn more here: api.flutter.dev/flutter/widg...