getScreenWidth method

double getScreenWidth(
  1. BuildContext context
)

Implementation

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