screenWidth property
double
screenWidth
当前设备宽度 dp The horizontal extent of this size.
Implementation
double get screenWidth =>
_context != null ? MediaQuery.of(_context!).size.width : _screenWidth;
当前设备宽度 dp The horizontal extent of this size.
double get screenWidth =>
_context != null ? MediaQuery.of(_context!).size.width : _screenWidth;