responsivePadding static method

EdgeInsets responsivePadding(
  1. BuildContext context, {
  2. double left = 0,
  3. double top = 0,
  4. double right = 0,
  5. double bottom = 0,
})

Implementation

static EdgeInsets responsivePadding(
  BuildContext context, {
  double left = 0,
  double top = 0,
  double right = 0,
  double bottom = 0,
}) {
  return EdgeInsets.only(
    left: responsiveWidth(context, left),
    top: responsiveHeight(context, top),
    right: responsiveWidth(context, right),
    bottom: responsiveHeight(context, bottom),
  );
}