getDeviceScreenType function
Implementation
DeviceScreenType getDeviceScreenType(MediaQueryData data) {
var width = data.size.shortestSide;
if (kIsWeb) {
width = data.size.width;
}
if (width > 950) {
return DeviceScreenType.desktop;
}
if (width > 600) {
return DeviceScreenType.tablet;
}
return DeviceScreenType.mobile;
}