adaptWidth static method

double adaptWidth(
  1. double value
)

Implementation

static double adaptWidth(double value) {
  if (isMobile()) {
    return value.w;
  } else {
    return value; // PC端直接用原始数值
  }
}