Open enricocaliolo opened 1 month ago
According to the docs at https://api.flutter.dev/flutter/painting/BoxFit.html BoxFit.cover
means "as small as possible while still contained in the target box", while BoxFit.contain
means "as large as possible [...]".
We do have a conversion at https://github.com/juliansteenbakker/mobile_scanner/blob/master/lib/src/scan_window_calculation.dart
However, that conversion seems to imply that the scan window is always centered when a BoxFit conversion is made.
Hi, I can't seem to make scan window work when I use BoxFit.cover instead of BoxFit.contain. I think it is related to how I am painting the overlay scan, but dunno what to do.