getUserSettingFlagWidth static method

double getUserSettingFlagWidth(
  1. double currentScreenWidth
)

Returns the width for the user setting flag, adjusted according to the screen width.

The width is interpolated between 30 and 42, depending on the screen width.

  • currentScreenWidth: The current width of the screen.

Returns the adjusted width for the user setting flag.

Implementation

static double getUserSettingFlagWidth(double currentScreenWidth) {
  return interpolateBestDouble(
      InterpolationDoubleValues(min: 30, max: 42), currentScreenWidth);
}