Add padding for progress bar in Preferences
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user