maxWidth function

double maxWidth(
  1. BuildContext context
)

Implementation

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