getListItemTitleFontSize static method

double getListItemTitleFontSize(
  1. double currentScreenWidth
)

Returns the font size for list item titles, adjusted according to the screen width.

The size is interpolated between 17 and 23, depending on the screen width.

  • currentScreenWidth: The current width of the screen.

Returns the adjusted list item title font size.

Implementation

static double getListItemTitleFontSize(double currentScreenWidth) {
  return interpolateBestDouble(
      InterpolationDoubleValues(min: 17, max: 23), currentScreenWidth);
}