isLandscape static method

bool isLandscape(
  1. BuildContext context
)

Whether the screen is wider than it is tall.

Implementation

static bool isLandscape(BuildContext context) =>
    MediaQuery.orientationOf(context) == Orientation.landscape;