TF-3410 Sync changes between web and mobile

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-01-09 03:30:08 +07:00
committed by Dat H. Pham
parent 700e8bc479
commit dfd596011b
17 changed files with 167 additions and 126 deletions
@@ -10,7 +10,7 @@ class MobileAppBarThreadWidgetStyle {
static const double minHeight = 56;
static const Color backgroundColor = Colors.white;
static const Color backButtonColor = AppColor.primaryColor;
static const Color backButtonColor = AppColor.steelGrayA540;
static EdgeInsetsGeometry getPadding(BuildContext context, ResponsiveUtils responsiveUtils) {
if (responsiveUtils.isPortraitMobile(context) || responsiveUtils.isLandscapeTablet(context)) {
@@ -23,8 +23,9 @@ class MobileAppBarThreadWidgetStyle {
static const EdgeInsetsGeometry titlePadding = EdgeInsets.symmetric(horizontal: 16);
static const TextStyle emailCounterTitleStyle = TextStyle(
fontSize: 17,
color: AppColor.primaryColor
fontSize: 15,
fontWeight: FontWeight.w400,
color: AppColor.steelGrayA540,
);
static const TextStyle titleTextStyle = TextStyle(
fontSize: 21,
@@ -6,30 +6,21 @@ import 'package:flutter/material.dart';
class SelectionWebAppBarThreadWidgetStyle {
static const double minHeight = 56;
static const double iconSize = 20;
static const double mediumIconSize = 22;
static const double closeButtonIconSize = 28;
static const Color backgroundColor = Colors.white;
static const Color cancelButtonColor = AppColor.primaryColor;
static const Color iconColor = AppColor.steelGrayA540;
static EdgeInsetsGeometry getPadding(BuildContext context, ResponsiveUtils responsiveUtils) {
if (responsiveUtils.isMobile(context) || responsiveUtils.isTabletLarge(context)) {
return const EdgeInsets.symmetric(horizontal: 12, vertical: 8);
return const EdgeInsets.symmetric(horizontal: 16, vertical: 8);
} else {
return const EdgeInsets.symmetric(horizontal: 24, vertical: 8);
}
}
static const EdgeInsetsGeometry closeButtonPadding = EdgeInsets.all(3);
static const TextStyle emailCounterStyle = TextStyle(
fontSize: 17,
fontWeight: FontWeight.w500,
color: AppColor.primaryColor
fontSize: 15,
fontWeight: FontWeight.w400,
color: AppColor.steelGrayA540
);
static Color getDeleteButtonColor(bool deletePermanentlyValid) {
return deletePermanentlyValid
? AppColor.colorDeletePermanentlyButton
: AppColor.primaryColor;
}
}