isPortrait static method

bool isPortrait(
  1. BuildContext context
)

Whether the screen is taller than it is wide.

Implementation

static bool isPortrait(BuildContext context) =>
    MediaQuery.orientationOf(context) == Orientation.portrait;