TF-1915 Add SendingState property to SendingEmail
(cherry picked from commit 678593583b598f3f06f2a838ce4cd788ed1de513)
This commit is contained in:
@@ -177,6 +177,10 @@ extension AppColor on Color {
|
||||
static const colorTitleAUnSubscribedMailbox = Color(0xFF818C99);
|
||||
static const colorTitleSendingItem = Color(0xFF818C99);
|
||||
static const colorBannerMessageSendingQueue = Color(0xFFF7F8FA);
|
||||
static const colorDeliveringState = Color(0xFFAEB7C2);
|
||||
static const colorErrorState = Color(0xFFE64646);
|
||||
static const colorBackgroundErrorState = Color(0xFFFAEBEB);
|
||||
static const colorBackgroundDeliveringState = Color(0xFFF2F3F5);
|
||||
|
||||
static const mapGradientColor = [
|
||||
[Color(0xFF21D4FD), Color(0xFFB721FF)],
|
||||
|
||||
@@ -182,9 +182,13 @@ class ImagePaths {
|
||||
String get icMailboxSendingQueue => _getImagePath('ic_mailbox_sending_queue.svg');
|
||||
String get icMailboxOutbox => _getImagePath('ic_mailbox_outbox.svg');
|
||||
String get icAvatarGroup => _getImagePath('ic_avatar_group.svg');
|
||||
String get icAvatarGroupDelivering => _getImagePath('ic_avatar_group_delivering.svg');
|
||||
String get icAvatarPersonal => _getImagePath('ic_avatar_personal.svg');
|
||||
String get icAvatarPersonalDelivering => _getImagePath('ic_avatar_personal_delivering.svg');
|
||||
String get icDialogOfflineMode => _getImagePath('ic_dialog_offline_mode.svg');
|
||||
String get icMenuMailbox => _getImagePath('ic_menu_mailbox.svg');
|
||||
String get icDelivering => _getImagePath('ic_delivering.svg');
|
||||
String get icError => _getImagePath('ic_error.svg');
|
||||
|
||||
String _getImagePath(String imageName) {
|
||||
return AssetsPaths.images + imageName;
|
||||
|
||||
@@ -8,20 +8,20 @@ class ResponsiveUtils {
|
||||
static const double defaultSizeDrawer = 320;
|
||||
static const double defaultSizeMenu = 256;
|
||||
|
||||
final int heightShortest = 600;
|
||||
static const int heightShortest = 600;
|
||||
|
||||
final int minDesktopWidth = 1200;
|
||||
final int minTabletWidth = 600;
|
||||
final int minTabletLargeWidth = 900;
|
||||
static const int minDesktopWidth = 1200;
|
||||
static const int minTabletWidth = 600;
|
||||
static const int minTabletLargeWidth = 900;
|
||||
|
||||
final double _loginTextFieldWidthSmallScreen = 280.0;
|
||||
final double _loginTextFieldWidthLargeScreen = 320.0;
|
||||
final double _loginButtonWidth = 240.0;
|
||||
static const double _loginTextFieldWidthSmallScreen = 280.0;
|
||||
static const double _loginTextFieldWidthLargeScreen = 320.0;
|
||||
static const double _loginButtonWidth = 240.0;
|
||||
|
||||
final double tabletHorizontalMargin = 120.0;
|
||||
final double tabletVerticalMargin = 200.0;
|
||||
final double desktopVerticalMargin = 120.0;
|
||||
final double desktopHorizontalMargin = 200.0;
|
||||
static const double tabletHorizontalMargin = 120.0;
|
||||
static const double tabletVerticalMargin = 200.0;
|
||||
static const double desktopVerticalMargin = 120.0;
|
||||
static const double desktopHorizontalMargin = 200.0;
|
||||
|
||||
bool isScreenWithShortestSide(BuildContext context) => context.mediaQueryShortestSide < minTabletWidth;
|
||||
|
||||
@@ -116,4 +116,6 @@ class ResponsiveUtils {
|
||||
isDesktop(context));
|
||||
}
|
||||
}
|
||||
|
||||
static bool isMatchedMobileWidth(double width) => width < minTabletWidth;
|
||||
}
|
||||
Reference in New Issue
Block a user