mitesh77 / Best-Flutter-UI-Templates

completely free for everyone. Its build-in Flutter Dart.
Other
20.4k stars 4.54k forks source link

SystemChrome.setPreferredOrientations( [DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]) .then((_) => runApp(new MyApp())); is not working properly #7

Closed Parmendrakumar closed 5 years ago

Parmendrakumar commented 5 years ago

Getting white screen on Mobile with SystemChrome.setPreferredOrientations( [DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]) .then((_) => runApp(new MyApp()));

Its working fine with runApp(new MyApp());

So, What is the use of SystemChrome.setPreferredOrientations( [DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]) .then((_) => runApp(new MyApp()));

mitesh77 commented 5 years ago

it's run all app in portrait mode, its nothing but the custom drawer is not working properly in landscape mode. so I use this method.

what mobile model, please give me the name of mobile?

csbzy commented 5 years ago

I test both Pixel XL and iPhone8 plus. Only Getting white screen

mitesh77 commented 5 years ago

I run again no issue found, please re-clon and check its. bro.

Parmendrakumar commented 5 years ago

I have tested it on Master branch and its working fine