getWheelNumberStyle method

TextStyle getWheelNumberStyle(
  1. bool isSelected
)

Returns the text style for numbers in the time selection wheels.

@param isSelected Whether the number is currently selected

Implementation

TextStyle getWheelNumberStyle(bool isSelected) => TextStyle(
  fontSize: isSelected ? 20 : 16,
  fontWeight: isSelected ? FontWeight.w600 : FontWeight.w400,
  color: isSelected ? wheelSelectedTextColor : wheelUnselectedTextColor,
  letterSpacing: 0.5,
);