getScreenWidth static method

double getScreenWidth(
  1. BuildContext context
)

Returns the screen width of the current device.

Implementation

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