fix: light zoom at back

This commit is contained in:
qguillaume
2026-06-08 23:09:47 +02:00
parent 9afe3c8508
commit 625810234e
2 changed files with 26 additions and 5 deletions

View File

@@ -419,6 +419,10 @@ class _CropScreenState extends State<CropScreen> {
MaterialPageRoute(
builder: (_) => AnalysisScreen(
imagePath: croppedImagePath,
// AJOUT : on conserve la SOURCE non rognée pour les retours arrière.
// Sans cela, revenir au crop repartait de l'image déjà rognée à 85%,
// provoquant un zoom cumulatif (0.85 x 0.85 x ...) à chaque aller-retour.
originalImagePath: widget.imagePath,
targetType: widget.targetType,
initialCenterX: targetCenterX,
initialCenterY: targetCenterY,