I wanted to know how I adjust the container and contents that I have in a window to the screen rotation since when it rotates some things are not seen... Or simply block the rotation, thanks!
I wanted to know how I adjust the container and contents that I have in a window to the screen rotation since when it rotates some things are not seen... Or simply block the rotation, thanks!
You can use
MediaQuery
to get the screen size.Example:
To prevent orientation you can see the accepted answer here https://stackoverflow.com/questions/49418332/flutter-how-to-prevent-device-orientation-changes-and-force-portrait?rq=1