IS_PORTRAIT function
Implementation
bool IS_PORTRAIT(context) {
double screenHeight = MediaQuery.of(context).size.height;
double screenWidth = MediaQuery.of(context).size.width;
return screenWidth > screenHeight;
}
bool IS_PORTRAIT(context) {
double screenHeight = MediaQuery.of(context).size.height;
double screenWidth = MediaQuery.of(context).size.width;
return screenWidth > screenHeight;
}