defineWidthModalSize method

double defineWidthModalSize(
  1. BuildContext context
)

Implementation

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

  if (screenWidth >= 2500) {
    return 0.50;
  } else if (Responsive.isDesktop(context)) {
    return 0.50;
  } else if (Responsive.isTablet(context)) {
    return 0.70;
  } else {
    return 0.95;
  }
}