getWidth method
Get screen width, can be resize with size between 0 and 1.
Implementation
double getWidth(BuildContext context, {double size = 1}) {
size = _validateSize(size);
return MediaQuery.of(context).size.width * size;
}
Get screen width, can be resize with size between 0 and 1.
double getWidth(BuildContext context, {double size = 1}) {
size = _validateSize(size);
return MediaQuery.of(context).size.width * size;
}