isTablet function Utils
- 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;
The isTablet function returns true if the current viewport width is greater than or equal to 1024.
bool isTablet(BuildContext context) =>
MediaQuery.of(context).size.width >= 1024;