getSpacing method

double getSpacing(
  1. BuildContext context
)

Implementation

double getSpacing(BuildContext context) {
  final size = MediaQuery.sizeOf(context);

  if (size.width >= FastMediaBreakpoints.tablet) {
    return FastSpacing.small;
  } else if (size.width >= FastMediaBreakpoints.desktop) {
    return FastSpacing.medium;
  } else if (size.width >= FastMediaBreakpoints.large) {
    return FastSpacing.large;
  } else if (size.width >= FastMediaBreakpoints.xl) {
    return FastSpacing.xl;
  }

  return FastSpacing.xs;
}