screenWidth function

double screenWidth(
  1. BuildContext context
)

screenWidth provides the current screen width.

Implementation

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