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,28 +239,12 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
fit: StackFit.expand, fit: StackFit.expand,
children: [ children: [
ClipRect( ClipRect(
child: Builder( // CORRECTIF : Le Transform qui bloquait l'image en mode zoomé lors de la calibration a été supprimé !
builder: (context) { // L'image s'affiche maintenant de manière normale, brute et entière dès l'arrivée sur l'écran.
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( child: Image.file(
File(provider.imagePath!), File(provider.imagePath!),
fit: BoxFit.contain, fit: BoxFit.contain,
), ),
);
},
),
), ),
TargetCalibration( TargetCalibration(
key: _calibrationKey, key: _calibrationKey,
@@ -479,8 +463,7 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
maxScale: 10.0, maxScale: 10.0,
boundaryMargin: const EdgeInsets.all(double.infinity), boundaryMargin: const EdgeInsets.all(double.infinity),
panEnabled: _movingShotId == null, panEnabled: _movingShotId == null,
// CORRECTIF : Le widget Transform forçant le zoom/décalage initial a été supprimé d'ici. // CORRECTIF : Le widget Transform a également été retiré ici pour le mode Plotting.
// L'image s'affiche maintenant de manière brute et entière, à plat.
child: GestureDetector( child: GestureDetector(
onDoubleTapDown: (TapDownDetails details) { onDoubleTapDown: (TapDownDetails details) {
final RenderBox? box = final RenderBox? box =