Closed madhusudhan-sahani closed 4 years ago
Hi, I have tried many things to fix the orientation in the scanner screen.
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]) .then((_) { runApp(new MyApp()); }); And SystemChrome.setPreferredOrientations([ DeviceOrientation.landscapeRight, DeviceOrientation.landscapeLeft, ]);
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]) .then((_) { runApp(new MyApp()); });
SystemChrome.setPreferredOrientations([ DeviceOrientation.landscapeRight, DeviceOrientation.landscapeLeft, ]);
my other screen's orientation fixed but the scanner page orientation is not being fixed.
If you want a fixed orientation, you've to this in the AndroidManifest.xml / in Xcode
Hi, I have tried many things to fix the orientation in the scanner screen.
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]) .then((_) { runApp(new MyApp()); });
AndSystemChrome.setPreferredOrientations([ DeviceOrientation.landscapeRight, DeviceOrientation.landscapeLeft, ]);
my other screen's orientation fixed but the scanner page orientation is not being fixed.