physicalWidth top-level property

double physicalWidth
final

Get the device screen width

Implementation

final double physicalWidth =
    WidgetsBinding.instance.platformDispatcher.views.first.physicalSize.width;