fix(analysis): supprimer le transform visuel pour afficher l'image entière en calibration

This commit is contained in:
qguillaume
2026-06-05 00:17:02 +02:00
parent d59ec1e9af
commit 3bfcdeaec5

View File

@@ -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 =