getDeviceScreenType method
Implementation
DeviceScreenType getDeviceScreenType(MediaQueryData mediaQuery) {
final orientation = mediaQuery.orientation;
var deviceWidth = 0.0;
if (orientation == Orientation.landscape) {
deviceWidth = mediaQuery.size.height;
} else {
deviceWidth = mediaQuery.size.width;
}
// TODO(paw): desktop version
if (deviceWidth > 600) {
return DeviceScreenType.tablet;
}
return DeviceScreenType.mobile;
}