setSp static method

double setSp(
  1. num fontSize
)

字体大小适配方法

  • fontSize UI设计上字体的大小,单位dp. Font size adaptation method
  • fontSize The size of the font on the UI design, in dp.

Implementation

static double setSp(num fontSize) => fontSize * scaleText;