getSpacing method
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;
}