edgePadding method

EdgeInsetsGeometry edgePadding({
  1. required double md,
  2. required double lg,
  3. required double xxl,
})

Implementation

EdgeInsetsGeometry edgePadding({
  required double md,
  required double lg,
  required double xxl,
}) {
  if (isMobile) {
    return EdgeInsets.symmetric(horizontal: md);
  }
  if (isTablet) {
    return EdgeInsets.symmetric(horizontal: lg);
  }
  return EdgeInsets.symmetric(horizontal: xxl);
}