maxWidth function
Implementation
double maxWidth(BuildContext context) {
double width = MediaQuery.sizeOf(context).width;
if (width > 500) {
width = 500;
}
return width;
}
double maxWidth(BuildContext context) {
double width = MediaQuery.sizeOf(context).width;
if (width > 500) {
width = 500;
}
return width;
}