getScreenWidth static method

double getScreenWidth(
  1. BuildContext context
)

获取屏幕宽度

Implementation

static double getScreenWidth(BuildContext context) {
  return MediaQuery.of(context).size.width;
}