Flutter CustomPainter paints on animations

52 views Asked by At

I have an extended CustomPainter class inside a MaterialApp widget tree. Unfortunately, the paint method gets invoked multiple times during the intrinsic Material design animations (for instance when hovering over a BottomNavigationBarItem or when the Drawer opens).

This happens even though the shouldRepaint method returns always false.

How can I avoid this?

0

There are 0 answers