feat(crop): ajout de lignes de visée perpendiculaires sur toute la zone pour aligner la cible

This commit is contained in:
qguillaume
2026-05-26 23:36:50 +02:00
parent 622f2936de
commit 620e12a1fd

View File

@@ -252,7 +252,7 @@ class _CropScreenState extends State<CropScreen> {
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<CropScreen> {
),
),
),
// 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),