width static method

double width(
  1. dynamic context
)

Getting the full width of the screen

Implementation

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