fix: cift tiklamada zoom/pan olumu (_vpSize sifirlamasi kaldirildi), windows setup.exe guncellendi

_toggleFillFit/_resetView icinde _vpSize = Size.zero, LayoutBuilder
yeniden calismadiginda zoom'u olduruyor ve pan'i sinirsiz yapiyordu.
_vpSize artik yalnizca constraints.biggest'ten beslenir.
This commit is contained in:
git_alhan
2026-08-03 11:06:12 +03:00
parent 5c98482070
commit 65c78c4c38
4 changed files with 5 additions and 2 deletions

View File

@@ -154,13 +154,13 @@ class _ImageCanvasState extends State<ImageCanvas> {
}
void _resetView() {
_tx = 0; _ty = 0; _sc = 1.0; _isFilled = true; _vpSize = Size.zero;
_tx = 0; _ty = 0; _sc = 1.0; _isFilled = true;
_angle = 0; _contrast = 1.0; _saturation = 1.0; _brightness = 0;
_markRenderDirty();
}
void _toggleFillFit() {
_isFilled = !_isFilled; _tx = 0; _ty = 0; _sc = 1.0; _vpSize = Size.zero;
_isFilled = !_isFilled; _tx = 0; _ty = 0; _sc = 1.0;
_angle = 0; _contrast = 1.0; _saturation = 1.0; _brightness = 0;
_markRenderDirty();
}