TF-788 Build up Settings Screen with SettingsFirstLevelTileBuilder
This commit is contained in:
committed by
Dat H. Pham
parent
9283f88b24
commit
87f02ef7fd
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user