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
9 changes: 8 additions & 1 deletion lib/ui/mesh_radar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -214,5 +214,12 @@ class _SweepingDotPainter extends CustomPainter {
}

@override
bool shouldRepaint(covariant _SweepingDotPainter oldDelegate) => true;
bool shouldRepaint(covariant _SweepingDotPainter oldDelegate) {
// ⚑ Bolt Optimization: Only check static properties (orbitRadius).
// Do not blindly return true, as the animation state already handles
// its own repaints via the `repaint` listenable passed to `super`.
// Returning true here would force a redundant canvas repaint whenever
// the parent widget rebuilds.
return oldDelegate.orbitRadius != orbitRadius;
}
}
Loading