removed logs

This commit is contained in:
hannathkadher
2024-11-12 12:27:17 +04:00
parent d0229ed81f
commit ddea69f332

View File

@ -51,14 +51,11 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
}
void updateCanvasSize() {
print("test");
double maxX = 0;
double maxY = 0;
// Calculate the maximum X and Y positions of all spaces
for (var space in spaces) {
print(
"Space Position: ${space.position.dx}, ${space.position.dy}"); // Log the position of each space
maxX = max(maxX, space.position.dx + 150); // Add width of space
maxY = max(maxY, space.position.dy + 60); // Add height of space
}
@ -73,10 +70,6 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
canvasWidth = newWidth;
canvasHeight = newHeight;
});
// Log the updated canvas size for debugging
print("Max X: $maxX, Max Y: $maxY");
print("Updated canvas size: $canvasWidth x $canvasHeight");
}
@override