isTablet function Utils

bool isTablet(
  1. BuildContext context
)

The isTablet function returns true if the current viewport width is greater than or equal to 1024.

Implementation

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