fix(analysis): supprimer le transform visuel pour afficher l'image entière en calibration
This commit is contained in:
@@ -239,27 +239,11 @@ 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(
|
child: Image.file(
|
||||||
transform: Matrix4.identity()
|
File(provider.imagePath!),
|
||||||
..setTranslationRaw(
|
fit: BoxFit.contain,
|
||||||
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,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
TargetCalibration(
|
TargetCalibration(
|
||||||
@@ -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 =
|
||||||
|
|||||||
Reference in New Issue
Block a user