diff --git a/lib/features/analysis/analysis_screen.dart b/lib/features/analysis/analysis_screen.dart index 83ae4605..4c4a6763 100644 --- a/lib/features/analysis/analysis_screen.dart +++ b/lib/features/analysis/analysis_screen.dart @@ -239,27 +239,11 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> { fit: StackFit.expand, children: [ ClipRect( - child: Builder( - builder: (context) { - return Transform( - transform: Matrix4.identity() - ..setTranslationRaw( - widget.cropOffset?.dx ?? 0.0, - widget.cropOffset?.dy ?? 0.0, - 0.0, - ) - ..scale(1.0, 1.0) - ..rotateZ( - (provider.cropRotation) * - (math.pi / 180), - ), - alignment: Alignment.center, - child: Image.file( - File(provider.imagePath!), - fit: BoxFit.contain, - ), - ); - }, + // CORRECTIF : Le Transform qui bloquait l'image en mode zoomé lors de la calibration a été supprimé ! + // L'image s'affiche maintenant de manière normale, brute et entière dès l'arrivée sur l'écran. + child: Image.file( + File(provider.imagePath!), + fit: BoxFit.contain, ), ), TargetCalibration( @@ -479,8 +463,7 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> { maxScale: 10.0, boundaryMargin: const EdgeInsets.all(double.infinity), panEnabled: _movingShotId == null, - // CORRECTIF : Le widget Transform forçant le zoom/décalage initial a été supprimé d'ici. - // L'image s'affiche maintenant de manière brute et entière, à plat. + // CORRECTIF : Le widget Transform a également été retiré ici pour le mode Plotting. child: GestureDetector( onDoubleTapDown: (TapDownDetails details) { final RenderBox? box =