fix(analysis): supprimer le transform visuel pour afficher l'image entière en calibration
This commit is contained in:
@@ -239,28 +239,12 @@ 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,
|
||||
// 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(
|
||||
key: _calibrationKey,
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user