TF-788 Build up Settings Screen with SettingsFirstLevelTileBuilder

This commit is contained in:
Dat PHAM HOANG
2022-08-24 12:12:42 +07:00
committed by Dat H. Pham
parent 9283f88b24
commit 87f02ef7fd
8 changed files with 385 additions and 0 deletions
@@ -0,0 +1,20 @@
import 'package:core/presentation/utils/responsive_utils.dart';
import 'package:flutter/widgets.dart';
class SettingsUtils {
static double getHorizontalPadding(BuildContext context, ResponsiveUtils responsiveUtils) {
if (responsiveUtils.isMobile(context)) {
return 17;
} else {
return 33;
}
}
static EdgeInsets getPaddingInFirstLevel(BuildContext context, ResponsiveUtils responsiveUtils) {
if (responsiveUtils.isMobile(context)) {
return const EdgeInsets.only(left: 16, top: 12, bottom: 12, right: 16);
} else {
return const EdgeInsets.only(left: 32, top: 12, bottom: 12, right: 32);
}
}
}