width static method

double width()

获取屏幕宽度

返回结果: double 屏幕宽度(单位: dp)

示例:

double w = DScreenUtil.width();
print(w); // 例如: 375.0

Implementation

static double width() {
  return Get.width;
}