Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/ui/mesh_radar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -214,5 +214,11 @@ class _SweepingDotPainter extends CustomPainter {
}

@override
bool shouldRepaint(covariant _SweepingDotPainter oldDelegate) => true;
bool shouldRepaint(covariant _SweepingDotPainter oldDelegate) {
// ⚑ Bolt Optimization: Only check non-animation properties.
// The animation state already handles its own repaints via the `repaint`
// parameter in `super()`. Returning true unconditionally forces unnecessary
// canvas repaints when the parent widget rebuilds.
return oldDelegate.orbitRadius != orbitRadius;
}
}
Loading