TF-3410 Fix wrong text style email subject in EmailView
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -166,6 +166,18 @@ class ThemeUtils {
|
|||||||
color: color,
|
color: color,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
static TextStyle textStyleHeadingH5({
|
||||||
|
Color? color,
|
||||||
|
FontWeight? fontWeight,
|
||||||
|
}) => TextStyle(
|
||||||
|
fontFamily: ConstantsUI.fontApp,
|
||||||
|
fontWeight: fontWeight ?? FontWeight.w500,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
fontSize: 24,
|
||||||
|
height: 28 / 24,
|
||||||
|
color: color,
|
||||||
|
);
|
||||||
|
|
||||||
static TextStyle textStyleHeadingH4({
|
static TextStyle textStyleHeadingH4({
|
||||||
Color? color,
|
Color? color,
|
||||||
FontWeight? fontWeight,
|
FontWeight? fontWeight,
|
||||||
|
|||||||
@@ -4,13 +4,9 @@ import 'package:core/utils/platform_info.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class EmailSubjectStyles {
|
class EmailSubjectStyles {
|
||||||
static const double textSize = 20;
|
|
||||||
static int? maxLines = PlatformInfo.isWeb ? 2 : null;
|
static int? maxLines = PlatformInfo.isWeb ? 2 : null;
|
||||||
|
|
||||||
static const Color textColor = AppColor.colorNameEmail;
|
|
||||||
static const Color cursorColor = AppColor.colorTextButton;
|
static const Color cursorColor = AppColor.colorTextButton;
|
||||||
|
|
||||||
static const FontWeight fontWeight = FontWeight.w500;
|
|
||||||
|
|
||||||
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(vertical: 12, horizontal: 16);
|
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(vertical: 12, horizontal: 16);
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:model/email/presentation_email.dart';
|
import 'package:model/email/presentation_email.dart';
|
||||||
import 'package:tmail_ui_user/features/email/presentation/styles/email_subject_styles.dart';
|
import 'package:tmail_ui_user/features/email/presentation/styles/email_subject_styles.dart';
|
||||||
@@ -19,11 +20,7 @@ class EmailSubjectWidget extends StatelessWidget {
|
|||||||
child: Text(
|
child: Text(
|
||||||
presentationEmail.getEmailTitle(),
|
presentationEmail.getEmailTitle(),
|
||||||
maxLines: EmailSubjectStyles.maxLines,
|
maxLines: EmailSubjectStyles.maxLines,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.textStyleHeadingH5(color: Colors.black)
|
||||||
fontSize: EmailSubjectStyles.textSize,
|
|
||||||
color: EmailSubjectStyles.textColor,
|
|
||||||
fontWeight: EmailSubjectStyles.fontWeight
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user