Hi all. I have added the following code to mandatorily open in landscape mode. It is working well on iphone or other andorid mobiles but the code is not working on iPad. iPad still opens with portrait or the mode however it is being handled. Any suggestions on how this can be solved?
Future landscapeOrientationLock() async { // Add your function code here!
await SystemChrome.setPreferredOrientations(
[DeviceOrientation.landscapeLeft]);
}