canvas with panning

This commit is contained in:
2025-06-25 03:35:18 +00:00
parent 4b93580b3e
commit 6d0ef792db
6 changed files with 274 additions and 46 deletions
+9
View File
@@ -0,0 +1,9 @@
import 'dart:ui' show Offset;
extension OffsetCartesionOps on Offset {
double distanceSquared(Offset other) {
final dx = this.dx - other.dx;
final dy = this.dy - other.dy;
return dx * dx + dy * dy;
}
}