Change order of attachment and mail body on mobile

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-07-09 11:52:29 +07:00
committed by Dat H. Pham
parent 5e3f4458c5
commit 296065c0b7
28 changed files with 501 additions and 418 deletions
@@ -1,57 +0,0 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
class AttachmentItemWidgetStyle {
static const double radius = 8;
static const double maxWidthMobile = 260;
static const double maxWidthTablet = 240;
static const double maxWidthTabletLarge = 200;
static const double height = 36;
static const double iconSize = 20;
static const double space = 8;
static const double downloadIconSize = 22;
static const EdgeInsetsGeometry contentPadding = EdgeInsetsDirectional.symmetric(horizontal: 8, vertical: 5);
static const Color borderColor = AppColor.attachmentFileBorderColor;
static TextStyle labelTextStyle =
ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 14,
color: AppColor.attachmentFileNameColor,
fontWeight: FontWeight.w500,
);
static TextStyle dotsLabelTextStyle =
ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 12,
color: AppColor.attachmentFileNameColor,
fontWeight: FontWeight.w500,
);
static TextStyle sizeLabelTextStyle =
ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 12,
color: AppColor.attachmentFileSizeColor,
fontWeight: FontWeight.normal,
);
static double getMaxWidthItem({
required bool platformIsMobile,
required bool responsiveIsMobile,
required bool responsiveIsTablet,
required bool responsiveIsTabletLarge,
}) {
if (platformIsMobile) {
return responsiveIsMobile ? maxWidthMobile : maxWidthTablet;
} else {
if (responsiveIsTabletLarge) {
return maxWidthTabletLarge;
} else if (responsiveIsTablet) {
return maxWidthTablet;
} else {
return maxWidthMobile;
}
}
}
}