Closed GabrielAraujo closed 9 months ago
Hi,
I fixed a bug on the PreviewFit.cover
mode yesterday.
It's not merged yet as we wanted to test on more devices. But I think this would fix your problem. If you want the preview to take all your screen you have to you the cover mode.
For the fitWidth
mode. I think it's totally normal.
This mode will try to make the view exactly as large as it can be. But the height will stay proportionnal.
That's why height can be not taking all the screen.
For more explanation you can get a look at this great doc on web fit..
It did fix on the iPad now but on the iPhone now appears some black boxes on top and bottom:
Fixed
Steps to Reproduce
Setup cameraawesome and run on iPhone and iPad for comparison. On iPhone devices it will work as expected filling the screen but the same configuration on iPad leaves some blank spaces on the sides. If we switch to
fitWidth
it will work as expected on iPad but will leave blank spaces for top and bottom on iPhoneExpected results
No blank spaces on the sides for the preview
Actual results
Blank spaces on the sides for the preview.
About your device
Your flutter version
Run this in your command line
flutter --version
Flutter 3.7.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision b06b8b2710 (5 weeks ago) • 2023-01-23 16:55:55 -0800 Engine • revision b24591ed32 Tools • Dart 2.19.0 • DevTools 2.20.1