getScreenSize static method
Implementation
static ScreenSize getScreenSize(BuildContext context) {
if (MediaQuery.of(context).size.width > 1200) return ScreenSize.desktop;
if (MediaQuery.of(context).size.width >= 800 &&
MediaQuery.of(context).size.width <= 1200) return ScreenSize.tablet;
return ScreenSize.mobile;
}