getSettingsTileTextMaxWidth static method

double getSettingsTileTextMaxWidth(
  1. double currentScreenWidth
)

Returns the maximum width for the settings tile text, adjusted according to the screen width.

The width is interpolated between 100 and 700, with a maximum of 1000.

  • currentScreenWidth: The current width of the screen.

Returns the adjusted maximum width for the settings tile text.

Implementation

static double getSettingsTileTextMaxWidth(double currentScreenWidth) {
  return interpolateBestDouble(
      InterpolationDoubleValues(min: 100, max: 700, maxWidth: 1000),
      currentScreenWidth);
}