TF-1611 Fix bottom padding too large in vacation view

(cherry picked from commit 943102f54285fc3c9291160cc685e42bbdfbf168)
This commit is contained in:
dab246
2023-03-22 12:13:41 +07:00
committed by Dat Vu
parent 60dd32b790
commit 471713ebd7
3 changed files with 274 additions and 263 deletions
@@ -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);
}
}
}