isDesktop static method

bool isDesktop(
  1. BuildContext context
)

Returns true if the device screen width is 1024 pixels or more, typically considered a desktop device.

Implementation

static bool isDesktop(BuildContext context) =>
    MediaQuery.of(context).size.width >= 1024;