isLandscape static method

bool isLandscape()

True when the screen is wider than tall (needs a built app, uses navigatorKey).

Implementation

static bool isLandscape() => MediaQuery.of(navigatorKey.currentContext!).orientation == Orientation.landscape;