isPortrait static method
Whether the screen is taller than it is wide.
Implementation
static bool isPortrait(BuildContext context) =>
MediaQuery.orientationOf(context) == Orientation.portrait;
Whether the screen is taller than it is wide.
static bool isPortrait(BuildContext context) =>
MediaQuery.orientationOf(context) == Orientation.portrait;