Question : restrick platform orientation flutter
Answered by : mushy-millipede-0wf34gj9oegw
@override
dispose(){ SystemChrome.setPreferredOrientations([ DeviceOrientation.landscapeRight, DeviceOrientation.landscapeLeft, DeviceOrientation.portraitUp, DeviceOrientation.portraitDown, ]); super.dispose();
}
Source : https://stackoverflow.com/questions/50322054/flutter-how-to-set-and-lock-screen-orientation-on-demand | Last Update : Wed, 05 May 21