The problem of shrinking the screen size of the entire program

66 Views Asked by At

I am writing a Flutter project that scans QR codes and I use the qr_code_scanner package At first, the screen size was good, but now when I run it on my phone, it is smaller from the top and bottom It is interesting that the program is correct on the smaller phone I had and the emulator, but not on my phone

where is the problem from?

enter image description here

1

There are 1 best solutions below

1
On

If there is SafeArea in your code, you have to remove it, if not, you need to provide, Containter

height : MediaQuery.of(context).size.height

if not, send me your code as a screenshot, let's try another way