From 620e12a1fd61d56b60b6271ff01ac531245374e0 Mon Sep 17 00:00:00 2001 From: qguillaume Date: Tue, 26 May 2026 23:36:50 +0200 Subject: [PATCH] =?UTF-8?q?feat(crop):=20ajout=20de=20lignes=20de=20vis?= =?UTF-8?q?=C3=A9e=20perpendiculaires=20sur=20toute=20la=20zone=20pour=20a?= =?UTF-8?q?ligner=20la=20cible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/features/crop/crop_screen.dart | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/lib/features/crop/crop_screen.dart b/lib/features/crop/crop_screen.dart index d5f7abe3..85f487f1 100644 --- a/lib/features/crop/crop_screen.dart +++ b/lib/features/crop/crop_screen.dart @@ -252,7 +252,7 @@ class _CropScreenState extends State { Positioned.fill( child: Center( child: Transform( - // TRANSFORMATION GÉOMÉTRIQUE : Conversion des degrés du Slider en Radians pour la matrice + // TRANSFORMATION GÉOMÉTRIQUE : Conversion des degrés du Slider en Radians transform: Matrix4.identity() ..setTranslationRaw(_offset.dx, _offset.dy, 0) ..scale(_scale, _scale) @@ -267,6 +267,33 @@ class _CropScreenState extends State { ), ), ), + + // LIGNES VERTES PERPENDICULAIRES PROLONGÉES SUR TOUT L'ÉCRAN + Positioned.fill( + child: IgnorePointer( + child: Stack( + children: [ + // Ligne Horizontale (Prend toute la largeur) + Center( + child: Container( + width: double.infinity, // S'étend sur toute la zone + height: 1.5, // Ligne ultra fine + color: const Color(0xFF00FF00).withOpacity(0.5), // Vert fluo semi-transparent + ), + ), + // Ligne Verticale (Prend toute la hauteur) + Center( + child: Container( + width: 1.5, + height: double.infinity, // S'étend sur toute la zone + color: const Color(0xFF00FF00).withOpacity(0.5), + ), + ), + ], + ), + ), + ), + Positioned.fill( child: IgnorePointer( child: CropOverlay(cropSize: _cropSize, showGrid: false),