ui_utils library

Functions

getDeviceType(MediaQueryData mediaQuery) DeviceScreenType
Reference: https://www.mydevice.io/#compare-devices
getResponsiveHeight(Size actualScreenSize, double designHeight, [Size designScreenSize = const Size(375, 647)]) double
All the Size values are calculated in logical pixel not physical pixel. The 2 below functions are example functions and need to be adjusted to suit your need
getResponsiveWidth(Size actualScreenSize, double designWidth, [Size designScreenSize = const Size(375, 647)]) double