screenWidth function

double screenWidth(
  1. BuildContext context
)

Returns a screen width by using context

Implementation

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