support for lazy building widgets within viewport

This commit is contained in:
2025-07-05 20:09:52 +00:00
parent 7cfb9457a2
commit b81b99c55c
10 changed files with 392 additions and 194 deletions
+5
View File
@@ -1,3 +1,4 @@
import 'dart:math';
import 'dart:ui' show Offset;
extension OffsetCartesionOps on Offset {
@@ -11,6 +12,10 @@ extension OffsetCartesionOps on Offset {
return Offset(dx - other.dx, dy - other.dy);
}
Point toPoint() {
return Point(dx, dy);
}
String coord() {
return '(${dx.toStringAsFixed(2)}, ${dy.toStringAsFixed(2)})';
}