getResponsivePadding function
Implementation
double getResponsivePadding({required BuildContext context}) {
final double padding;
final List<NavigationItem> secondaryActions =
StoreProvider.state<CoreState>(context)!
.navigationState!
.secondaryActions!;
if (ResponsiveWidget.deviceType(context) != DeviceScreensType.Mobile &&
secondaryActions.isEmpty) {
padding =
ResponsiveWidget.preferredPaddingOnStretchedScreens(context: context);
} else if (ResponsiveWidget.deviceType(context) == DeviceScreensType.Mobile) {
padding = number15;
} else {
padding = number20;
}
return padding;
}