push is future method please add then method ....
SystemChrome.setPreferredOrientations([ DeviceOrientation.portraitUp, ]);