getPanelPadding static method

double getPanelPadding(
  1. double currentScreenWidth
)

Returns the padding for panels, adjusted according to the screen width.

The padding is interpolated between 5 and 20, depending on the screen width.

  • currentScreenWidth: The current width of the screen.

Returns the adjusted panel padding.

Implementation

static double getPanelPadding(double currentScreenWidth) {
  return interpolateBestDouble(
      InterpolationDoubleValues(min: 5, max: 20), currentScreenWidth);
}