getPadding method

EdgeInsets getPadding(
  1. BuildContext context
)

Implementation

EdgeInsets getPadding(BuildContext context) {
  final size = MediaQuery.sizeOf(context);

  if (size.width >= FastMediaBreakpoints.tablet) {
    return kFastEdgeInsets24;
  } else if (size.width >= FastMediaBreakpoints.desktop) {
    return kFastEdgeInsets32;
  } else if (size.width >= FastMediaBreakpoints.large) {
    return kFastEdgeInsets40;
  } else if (size.width >= FastMediaBreakpoints.xl) {
    return kFastEdgeInsets48;
  }

  return kFastEdgeInsets16;
}