TF-1611 Fix bottom padding too large in vacation view
(cherry picked from commit 943102f54285fc3c9291160cc685e42bbdfbf168)
This commit is contained in:
@@ -1,4 +1,17 @@
|
||||
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class VacationUtils {
|
||||
static const String vacationTagName = 'Vacation';
|
||||
|
||||
static EdgeInsets getPaddingView(BuildContext context, ResponsiveUtils responsiveUtils) {
|
||||
if (responsiveUtils.isDesktop(context)) {
|
||||
return const EdgeInsets.symmetric(vertical: 24, horizontal: 20);
|
||||
} else if (responsiveUtils.isTabletLarge(context) || responsiveUtils.isTablet(context)) {
|
||||
return const EdgeInsets.symmetric(horizontal: 28, vertical: 24);
|
||||
} else {
|
||||
return const EdgeInsets.symmetric(horizontal: 12, vertical: 24);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user