getVerticalPadding method

EdgeInsets getVerticalPadding(
  1. BuildContext context
)

Implementation

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

  if (size.width >= FastMediaBreakpoints.tablet) {
    return kFastVerticalEdgeInsets24;
  } else if (size.width >= FastMediaBreakpoints.desktop) {
    return kFastVerticalEdgeInsets32;
  } else if (size.width >= FastMediaBreakpoints.large) {
    return kFastVerticalEdgeInsets40;
  } else if (size.width >= FastMediaBreakpoints.xl) {
    return kFastVerticalEdgeInsets48;
  }

  return kFastVerticalEdgeInsets16;
}