dialogInset static method

EdgeInsets dialogInset(
  1. BuildContext context
)

Implementation

static EdgeInsets dialogInset(BuildContext context) {
  final w = sizeOf(context).width;
  final maxW = dialogMaxWidth(context);
  final horizontal = isTablet(context)
      ? ((w - maxW) / 2).clamp(48.0, 220.0)
      : 20.0;
  return EdgeInsets.symmetric(horizontal: horizontal, vertical: 24);
}