Change order of attachment and mail body on mobile
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class EmailAttachmentsStyles {
|
||||
EmailAttachmentsStyles._();
|
||||
|
||||
static const double headerTextSize = 15;
|
||||
static const double headerIconSize = 20;
|
||||
static const double headerSpace = 8;
|
||||
static const double marginHeader = 6;
|
||||
static const double buttonTextSize = 16;
|
||||
static const double buttonMoreAttachmentsTextSize = 14;
|
||||
static const double buttonMoreMaxWidth = 120;
|
||||
static const double buttonDownloadAllMaxWidth = 200;
|
||||
static const double buttonBorderRadius = 8;
|
||||
static const double listSpace = 8;
|
||||
|
||||
static const Color headerTextColor = AppColor.colorTitleHeaderAttachment;
|
||||
static const Color headerIconColor = AppColor.colorAttachmentIcon;
|
||||
static const Color buttonTextColor = AppColor.colorTextBody;
|
||||
static const Color buttonMoreAttachmentsTextColor = AppColor.colorLabelMoreAttachmentsButton;
|
||||
|
||||
static const FontWeight headerFontWeight = FontWeight.w400;
|
||||
static const FontWeight buttonFontWeight = FontWeight.w400;
|
||||
static const FontWeight buttonMoreAttachmentsFontWeight = FontWeight.w500;
|
||||
|
||||
static const EdgeInsetsGeometry padding = EdgeInsetsDirectional.only(start: 16, end: 16, bottom: 12, top: 16);
|
||||
static const EdgeInsetsGeometry buttonPadding = EdgeInsets.symmetric(vertical: 8, horizontal: 12);
|
||||
static const EdgeInsetsGeometry mobileButtonPadding = EdgeInsets.symmetric(vertical: 8, horizontal: 3);
|
||||
static const EdgeInsetsGeometry moreButtonMargin = EdgeInsetsDirectional.only(bottom: 2, start: 8);
|
||||
static const EdgeInsetsGeometry mobileMoreButtonMargin = EdgeInsetsDirectional.only(end: 8);
|
||||
static const attachmentsInfoPadding = EdgeInsetsDirectional.only(end: 8);
|
||||
}
|
||||
Reference in New Issue
Block a user