getFitWidth static method

double getFitWidth(
  1. BuildContext context
)

获取屏幕短的一边(避免横竖屏切换的影响)

Implementation

static double getFitWidth(BuildContext context) {
  return min(getScreenHeight(context), getScreenWidth(context));
}