TF-2510 Fix padding/style attachment item
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -4,29 +4,27 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class AttachmentItemWidgetStyle {
|
||||
static const double radius = 8;
|
||||
static const double mobileWidth = 224;
|
||||
static const double width = 260;
|
||||
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 = 20;
|
||||
static const double attachmentNameMaxWidth = 130;
|
||||
static const double downloadIconSize = 22;
|
||||
|
||||
static const EdgeInsetsGeometry padding = EdgeInsetsDirectional.only(end: 0);
|
||||
static const EdgeInsetsGeometry contentPadding = EdgeInsetsDirectional.all(8);
|
||||
static const EdgeInsetsGeometry contentPadding = EdgeInsetsDirectional.symmetric(horizontal: 8, vertical: 5);
|
||||
|
||||
static const Color borderColor = AppColor.attachmentFileBorderColor;
|
||||
static const Color downloadIconColor = AppColor.primaryColor;
|
||||
|
||||
static const TextStyle labelTextStyle = TextStyle(
|
||||
fontSize: 14,
|
||||
color: AppColor.attachmentFileNameColor,
|
||||
fontWeight: FontWeight.normal
|
||||
fontWeight: FontWeight.w500
|
||||
);
|
||||
static const TextStyle dotsLabelTextStyle = TextStyle(
|
||||
fontSize: 12,
|
||||
color: AppColor.attachmentFileNameColor,
|
||||
fontWeight: FontWeight.normal
|
||||
fontWeight: FontWeight.w500
|
||||
);
|
||||
static const TextStyle sizeLabelTextStyle = TextStyle(
|
||||
fontSize: 12,
|
||||
|
||||
+3
-8
@@ -3,27 +3,22 @@ import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AttachmentListItemWidgetStyle {
|
||||
static const double height = 60;
|
||||
static const double iconSize = 44;
|
||||
static const double space = 8;
|
||||
static const double downloadIconSize = 24;
|
||||
static const double fileTitleBottomSpace = 4;
|
||||
|
||||
static const EdgeInsetsGeometry contentPadding = EdgeInsetsDirectional.all(8);
|
||||
static const EdgeInsetsGeometry fileTitlePadding = EdgeInsetsDirectional.all(4);
|
||||
static const EdgeInsetsGeometry downloadIconPadding = EdgeInsets.only(right: 13.0);
|
||||
|
||||
static const Color downloadIconColor = AppColor.primaryColor;
|
||||
static const EdgeInsetsGeometry contentPadding = EdgeInsetsDirectional.all(12);
|
||||
|
||||
static const TextStyle labelTextStyle = TextStyle(
|
||||
fontSize: 14,
|
||||
color: AppColor.attachmentFileNameColor,
|
||||
fontWeight: FontWeight.normal
|
||||
fontWeight: FontWeight.w500
|
||||
);
|
||||
static const TextStyle dotsLabelTextStyle = TextStyle(
|
||||
fontSize: 12,
|
||||
color: AppColor.attachmentFileNameColor,
|
||||
fontWeight: FontWeight.normal
|
||||
fontWeight: FontWeight.w500
|
||||
);
|
||||
static const TextStyle sizeLabelTextStyle = TextStyle(
|
||||
fontSize: 12,
|
||||
|
||||
@@ -5,7 +5,6 @@ class AttachmentListStyles {
|
||||
static const double headerBorderWidth = 1.0;
|
||||
static const double titleSpace = 8.0;
|
||||
static const double scrollbarThickness = 8.0;
|
||||
static const double separatorHeight = 1.0;
|
||||
static const double buttonsSpaceBetween = 12.0;
|
||||
static const double dialogBottomSpace = 20.0;
|
||||
static const double buttonBorderWidth = 1.0;
|
||||
@@ -28,8 +27,6 @@ class AttachmentListStyles {
|
||||
);
|
||||
static const EdgeInsetsGeometry listAreaPadding = EdgeInsets.all(12.0);
|
||||
static const EdgeInsetsGeometry listAreaPaddingMobile = EdgeInsets.symmetric(vertical: 12);
|
||||
static const EdgeInsetsGeometry listItemPadding = EdgeInsets.only(right: 8.0);
|
||||
static const EdgeInsetsGeometry separatorPadding = EdgeInsets.only(right: 8.0);
|
||||
static const EdgeInsetsGeometry buttonsPadding = EdgeInsets.symmetric(
|
||||
horizontal: 24.0,
|
||||
vertical: 12.0
|
||||
|
||||
@@ -10,20 +10,18 @@ class EmailAttachmentsStyles {
|
||||
static const double buttonTextSize = 13;
|
||||
static const double buttonMoreAttachmentsTextSize = 14;
|
||||
static const double buttonBorderRadius = 8;
|
||||
static const double listSpace = 12;
|
||||
static const double listHeight = 36;
|
||||
static const double mobileListHeight = 100;
|
||||
static const double moreAttachmentsButtonPadding = 8;
|
||||
static const double listSpace = 8;
|
||||
|
||||
static const Color headerTextColor = AppColor.colorTitleHeaderAttachment;
|
||||
static const Color headerIconColor = AppColor.colorAttachmentIcon;
|
||||
static const Color buttonTextColor = AppColor.primaryColor;
|
||||
static const Color ButtonMoreAttachmentsTextColor = AppColor.colorLabelMoreAttachmentsButton;
|
||||
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.symmetric(vertical: 12, horizontal: 16);
|
||||
static const EdgeInsetsGeometry padding = EdgeInsetsDirectional.only(start: 16, end: 16, bottom: 12);
|
||||
static const EdgeInsetsGeometry buttonPadding = EdgeInsets.symmetric(vertical: 8, horizontal: 12);
|
||||
static const EdgeInsetsGeometry moreButtonMargin = EdgeInsetsDirectional.only(bottom: 2, start: 8);
|
||||
}
|
||||
Reference in New Issue
Block a user