screenWidth static method

double screenWidth(
  1. BuildContext context
)

Returns the width of the current screen.

Implementation

static double screenWidth(BuildContext context) =>
    MediaQuery.of(context).size.width;