core/responsive_builder library
Functions
-
getDeviceType(
Size size) → DeviceType -
Returns the
DeviceScreenType
that the application is currently running on -
getValueForScreenType<
T> ({required BuildContext context, required T mobile, T? tablet, T? desktop, T? watch}) → T - Will return one of the values passed in for the device it's running on