Question : how to check screen orientation in flutter
Answered by : raees-safdar
if (MediaQuery.of(context).orientation == Orientation.portrait){ // is portrait
}else{
// is landscape
}
Source : https://stackoverflow.com/questions/50815014/how-to-detect-orientation-change-in-layout-in-flutter | Last Update : Sat, 11 Jun 22