getBackNavigationSizes static method
Returns the size and padding for the back navigation icon, adjusted according to the screen width.
currentScreenWidth: The current width of the screen.
Returns the adjusted sizes and padding for the back navigation icon.
Implementation
static WidgetSizeValues getBackNavigationSizes({
required double currentScreenWidth,
}) {
WidgetSizeValues widgetSizeValues = WidgetSizeValues();
widgetSizeValues.size = interpolateBestDouble(
InterpolationDoubleValues(min: 35, max: 45), currentScreenWidth);
widgetSizeValues.padding = EdgeInsets.only(
left: interpolateBestDouble(
InterpolationDoubleValues(min: 5, max: 10), currentScreenWidth),
);
return widgetSizeValues;
}