TF-4093 Make interface more compact
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class EmailSubjectStyles {
|
||||
static int? maxLines = PlatformInfo.isWeb ? 2 : null;
|
||||
|
||||
static const Color cursorColor = AppColor.colorTextButton;
|
||||
static const EdgeInsetsGeometry padding = EdgeInsets.all(16);
|
||||
static const EdgeInsetsGeometry mobilePadding = EdgeInsets.all(12);
|
||||
|
||||
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(vertical: 12, horizontal: 16);
|
||||
static final TextStyle textStyle = ThemeUtils.textStyleInter500().copyWith(
|
||||
overflow: PlatformInfo.isWeb ? TextOverflow.ellipsis : null,
|
||||
color: Colors.black,
|
||||
fontSize: 24,
|
||||
height: 1,
|
||||
letterSpacing: -0.24,
|
||||
);
|
||||
}
|
||||
@@ -25,10 +25,19 @@ class EmailViewAppBarWidgetStyles {
|
||||
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);
|
||||
return const EdgeInsetsDirectional.only(
|
||||
top: 40,
|
||||
start: 12,
|
||||
end: 12,
|
||||
bottom: 4,
|
||||
);
|
||||
} else {
|
||||
return const EdgeInsetsDirectional.only(start: 16, end: 16, bottom: 4);
|
||||
return const EdgeInsetsDirectional.only(start: 12, end: 12, bottom: 4);
|
||||
}
|
||||
}
|
||||
static const EdgeInsetsGeometry padding = EdgeInsetsDirectional.symmetric(horizontal: 16);
|
||||
|
||||
static const EdgeInsetsGeometry mobilePadding =
|
||||
EdgeInsetsDirectional.only(start: 8, end: 12);
|
||||
static const EdgeInsetsGeometry padding =
|
||||
EdgeInsetsDirectional.symmetric(horizontal: 16);
|
||||
}
|
||||
@@ -1,20 +1,8 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/icon_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class EmailViewStyles {
|
||||
static const double mobileContentHorizontalMargin = 16;
|
||||
static const double mobileContentVerticalMargin = 12;
|
||||
static double pageViewIconSize = IconUtils.defaultIconSize;
|
||||
static const double initialHtmlViewHeight = 200;
|
||||
|
||||
static const Color iconColor = AppColor.steelGrayA540;
|
||||
|
||||
static const EdgeInsetsGeometry emailContentPadding =
|
||||
EdgeInsetsDirectional.only(
|
||||
start: 16,
|
||||
end: 16,
|
||||
top: 8,
|
||||
);
|
||||
EdgeInsetsDirectional.symmetric(horizontal: 16);
|
||||
static const EdgeInsetsGeometry mobileEmailContentPadding =
|
||||
EdgeInsetsDirectional.only(start: 12, end: 12, top: 12);
|
||||
}
|
||||
Reference in New Issue
Block a user