fix: on enleve les 85% qui rognent puisqu on utilise mlkit et non le cadre vert
This commit is contained in:
@@ -268,8 +268,9 @@ class _CropScreenState extends State<CropScreen> {
|
|||||||
displayWidth = _viewportSize.height * imageAspect;
|
displayWidth = _viewportSize.height * imageAspect;
|
||||||
}
|
}
|
||||||
|
|
||||||
// On passe de 0.95 à 0.85 pour matcher parfaitement avec l'appareil photo !
|
// Le cadre couvre TOUT le petit côté de l'image affichée (carré maximum),
|
||||||
_cropSize = math.min(displayWidth, displayHeight)* 0.85;
|
// au lieu des 85% précédents qui rognaient inutilement les bords.
|
||||||
|
_cropSize = math.min(displayWidth, displayHeight);
|
||||||
|
|
||||||
if (_scale == 1.0 && _offset == Offset.zero) {
|
if (_scale == 1.0 && _offset == Offset.zero) {
|
||||||
_initializeImagePosition();
|
_initializeImagePosition();
|
||||||
|
|||||||
Reference in New Issue
Block a user