isPortrait static method
Check if the device is in portrait orientation
Implementation
static bool isPortrait(BuildContext context) {
return MediaQuery.of(context).orientation == Orientation.portrait;
}
Check if the device is in portrait orientation
static bool isPortrait(BuildContext context) {
return MediaQuery.of(context).orientation == Orientation.portrait;
}