cardContentHorizontalPadding method

EdgeInsetsGeometry cardContentHorizontalPadding({
  1. required double xxs,
  2. required double xs,
  3. required double sm,
})

Implementation

EdgeInsetsGeometry cardContentHorizontalPadding(
    {required double xxs, required double xs, required double sm}) {
  if (isMobile) {
    return EdgeInsets.symmetric(horizontal: xxs);
  }
  if (isTablet) {
    return EdgeInsets.symmetric(horizontal: xs);
  }
  return EdgeInsets.symmetric(horizontal: sm);
}