physicalWidth top-level property
Get the device screen width
Implementation
final double physicalWidth =
WidgetsBinding.instance.platformDispatcher.views.first.physicalSize.width;
Get the device screen width
final double physicalWidth =
WidgetsBinding.instance.platformDispatcher.views.first.physicalSize.width;