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?