TF-3724 Thread Detail Revert ThemeUtils changes

This commit is contained in:
DatDang authored and Dat H. Pham committed 2025-06-06 11:22:54 +07:00
1 parent feb52a1a18
commit 03d0a2ceb3
4 files changed
+6 -12

No files matched your search

+3 -6
View File
@@ -105,13 +105,12 @@ class ThemeUtils {
Color? color,
FontWeight? fontWeight,
double? fontSize,
double? height,
}) => TextStyle(
fontFamily: ConstantsUI.fontApp,
fontWeight: fontWeight ?? FontWeight.w500,
letterSpacing: 0.0,
fontSize: fontSize ?? 16,
height: (height ?? 20) / (fontSize ?? 16),
height: 20 / (fontSize ?? 16),
color: color,
);
@@ -158,13 +157,12 @@ class ThemeUtils {
static TextStyle textStyleHeadingH6({
Color? color,
FontWeight? fontWeight,
double? height,
}) => TextStyle(
fontFamily: ConstantsUI.fontApp,
fontWeight: fontWeight ?? FontWeight.w700,
letterSpacing: 0.0,
fontSize: 20,
height: (height ?? 24) / 20,
height: 24 / 20,
color: color,
);
@@ -195,13 +193,12 @@ class ThemeUtils {
static TextStyle textStyleHeadingHeadingSmall({
Color? color,
FontWeight? fontWeight,
double? height,
}) => TextStyle(
fontFamily: ConstantsUI.fontApp,
fontWeight: fontWeight ?? FontWeight.w500,
letterSpacing: 0.0,
fontSize: 17,
height: (height ?? 22) / 17,
height: 22 / 17,
color: color,
);
@@ -240,9 +240,8 @@ class _EmailReceiverWidgetState extends State<EmailReceiverWidget> {
: '${emailAddress.asString()},',
textStyle: ThemeUtils.textStyleHeadingHeadingSmall(
color: Colors.black,
height: 17,
fontWeight: FontWeight.w400,
),
).copyWith(height: 17),
padding: const EdgeInsetsDirectional.symmetric(vertical: 2, horizontal: 8),
backgroundColor: Colors.transparent,
onTapActionCallback: () => widget.openEmailAddressDetailAction?.call(context, emailAddress),
@@ -44,8 +44,7 @@ class EmailSenderBuilder extends StatelessWidget {
customStyle: ThemeUtils.textStyleHeadingH6(
color: Colors.black,
fontWeight: FontWeight.w500,
height: 20,
),
).copyWith(height: 20),
overflow: CommonTextStyle.defaultTextOverFlow,
softWrap: CommonTextStyle.defaultSoftWrap
),
@@ -83,11 +83,10 @@ class ThreadDetailCollapsedEmail extends StatelessWidget {
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: ThemeUtils.textStyleBodyBody1(
height: 24,
fontWeight: presentationEmail.hasRead
? FontWeight.normal
: FontWeight.w600,
),
).copyWith(height: 24),
),
),
],