TF-2261 Fix app bar email view broken
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 5e26472141f1f4562f4e7e75034c4566dcd9351b)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/icon_utils.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class EmailViewAppBarWidgetStyles {
|
||||
@@ -11,7 +12,13 @@ class EmailViewAppBarWidgetStyles {
|
||||
static const double buttonIconSize = IconUtils.defaultIconSize;
|
||||
static const double deleteButtonIconSize = 20;
|
||||
static const double space = 5;
|
||||
|
||||
static double? heightIOS(BuildContext context, ResponsiveUtils responsiveUtils) {
|
||||
if (responsiveUtils.isLandscapeMobile(context)) {
|
||||
return 60;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
static const Color bottomBorderColor = AppColor.colorDividerHorizontal;
|
||||
static const Color backgroundColor = Colors.white;
|
||||
static const Color emptyTrashButtonColor = AppColor.primaryColor;
|
||||
@@ -19,6 +26,15 @@ class EmailViewAppBarWidgetStyles {
|
||||
static const Color buttonActivatedColor = AppColor.primaryColor;
|
||||
static const Color buttonDeactivatedColor = AppColor.colorAttachmentIcon;
|
||||
|
||||
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(horizontal: 16);
|
||||
static EdgeInsetsGeometry paddingIOS(BuildContext context, ResponsiveUtils responsiveUtils) {
|
||||
if (responsiveUtils.isLandscapeMobile(context)) {
|
||||
return EdgeInsets.zero;
|
||||
} else if (responsiveUtils.isPortraitTablet(context) || responsiveUtils.isLandscapeTablet(context)) {
|
||||
return const EdgeInsetsDirectional.only(top: 40, start: 16, end: 16, bottom: 4);
|
||||
} else {
|
||||
return const EdgeInsetsDirectional.only(top: 60, start: 16, end: 16, bottom: 4);
|
||||
}
|
||||
}
|
||||
static const EdgeInsetsGeometry padding = EdgeInsetsDirectional.symmetric(horizontal: 16);
|
||||
static const EdgeInsetsGeometry buttonPadding = EdgeInsets.all(5);
|
||||
}
|
||||
Reference in New Issue
Block a user