Add padding for progress bar in Preferences

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-07-03 11:06:38 +07:00
committed by Dat H. Pham
parent 718f1fe130
commit c1938ce31b
3 changed files with 23 additions and 6 deletions
@@ -124,6 +124,20 @@ class SettingsUtils {
}
}
static EdgeInsetsGeometry getSettingProgressBarPadding(
BuildContext context,
ResponsiveUtils responsiveUtils,
) {
if (responsiveUtils.isWebDesktop(context)) {
return const EdgeInsetsDirectional.only(end: 16, top: 16);
} else if (responsiveUtils.isTablet(context) ||
responsiveUtils.isTabletLarge(context)) {
return const EdgeInsetsDirectional.only(start: 32, end: 32, top: 16);
} else {
return const EdgeInsetsDirectional.only(start: 16, end: 16, top: 16);
}
}
static EdgeInsetsGeometry? getMarginSettingDetailsView(
BuildContext context,
ResponsiveUtils responsiveUtils,