getHorizontalPadding method

EdgeInsets getHorizontalPadding(
  1. BuildContext context
)

Implementation

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

  if (size.width >= FastMediaBreakpoints.tablet) {
    return kFastHorizontalEdgeInsets24;
  } else if (size.width >= FastMediaBreakpoints.desktop) {
    return kFastHorizontalEdgeInsets32;
  } else if (size.width >= FastMediaBreakpoints.large) {
    return kFastHorizontalEdgeInsets40;
  } else if (size.width >= FastMediaBreakpoints.xl) {
    return kFastHorizontalEdgeInsets48;
  }

  return kFastHorizontalEdgeInsets16;
}