TF-2189 Only store email to sending queue when offline on iOS
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 0dd22e5c3d300573b13d43fbfe50fc1622e2ab13)
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AppBarSendingQueueWidgetStyle {
|
||||
static const double height = 52;
|
||||
static const double leadingRadius = 15;
|
||||
static const double space = 8;
|
||||
static const double trailingSize = 50;
|
||||
|
||||
static const Color backgroundColor = Colors.white;
|
||||
static const Color iconColor = AppColor.colorTextButton;
|
||||
|
||||
static const EdgeInsetsGeometry leadingPadding = EdgeInsetsDirectional.only(start: 8);
|
||||
static const EdgeInsetsGeometry selectIconPadding = EdgeInsets.symmetric(horizontal: 10, vertical: 5);
|
||||
|
||||
static EdgeInsetsGeometry getPaddingAppBarByResponsiveSize(double width) {
|
||||
if (ResponsiveUtils.isMatchedMobileWidth(width)) {
|
||||
return const EdgeInsets.symmetric(horizontal: 10);
|
||||
} else {
|
||||
return const EdgeInsets.symmetric(horizontal: 24);
|
||||
}
|
||||
}
|
||||
|
||||
static const TextStyle countStyle = TextStyle(
|
||||
fontSize: 17,
|
||||
color: AppColor.colorTextButton
|
||||
);
|
||||
static const TextStyle labelStyle = TextStyle(
|
||||
fontSize: 21,
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.bold
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:tmail_ui_user/features/offline_mode/model/sending_state.dart';
|
||||
|
||||
class SendingEmailTileStyle {
|
||||
static const double avatarIconSize = 60;
|
||||
static const double avatarIconRadius = 30;
|
||||
static const double selectIconSize = 24;
|
||||
static const double attachmentIconSize = 20;
|
||||
static const double space = 8;
|
||||
static const double stateRowWidth = 120;
|
||||
static const double stateLabelWidth = 80;
|
||||
|
||||
static const EdgeInsetsGeometry attachmentPadding = EdgeInsetsDirectional.only(start: 8);
|
||||
static const EdgeInsetsGeometry timeCreatedPadding = EdgeInsetsDirectional.only(start: 8);
|
||||
static const EdgeInsetsGeometry statePadding = EdgeInsetsDirectional.only(start: 8);
|
||||
static const EdgeInsetsGeometry statePaddingMobile = EdgeInsetsDirectional.only(top: 8);
|
||||
static EdgeInsets getPaddingItemListViewByResponsiveSize(double width) {
|
||||
if (ResponsiveUtils.isMatchedMobileWidth(width)) {
|
||||
return const EdgeInsets.symmetric(horizontal: 16, vertical: 8);
|
||||
} else {
|
||||
return const EdgeInsets.symmetric(horizontal: 32, vertical: 8);
|
||||
}
|
||||
}
|
||||
static EdgeInsets getPaddingDividerListViewByResponsiveSize(double width) {
|
||||
if (ResponsiveUtils.isMatchedMobileWidth(width)) {
|
||||
return const EdgeInsets.only(left: 84, right: 8, top: 8);
|
||||
} else {
|
||||
return const EdgeInsets.only(left: 100, right: 24, top: 8);
|
||||
}
|
||||
}
|
||||
|
||||
static TextStyle getTitleTextStyle(SendingState state) => TextStyle(
|
||||
fontSize: 15,
|
||||
color: state.getTitleSendingEmailItemColor(),
|
||||
fontWeight: FontWeight.w600
|
||||
);
|
||||
static TextStyle getSubTitleTextStyle(SendingState state) => TextStyle(
|
||||
fontSize: 13,
|
||||
color: state.getSubTitleSendingEmailItemColor(),
|
||||
fontWeight: FontWeight.normal
|
||||
);
|
||||
static TextStyle getTimeCreatedTextStyle(SendingState state) => TextStyle(
|
||||
fontSize: 13,
|
||||
color: state.getTitleSendingEmailItemColor(),
|
||||
fontWeight: FontWeight.normal
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:tmail_ui_user/features/offline_mode/model/sending_state.dart';
|
||||
|
||||
class SendingStateWidgetStyle {
|
||||
static const double space = 4;
|
||||
static const double iconSize = 20;
|
||||
static const double radius = 16;
|
||||
|
||||
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(horizontal: 8, vertical: 6);
|
||||
|
||||
static TextStyle getTitleTextStyle(SendingState state) => TextStyle(
|
||||
fontSize: 15,
|
||||
color: state.getTitleColor(),
|
||||
fontWeight: FontWeight.normal
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user