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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user