TF-3410 Fix wrong text style Reply/Forward button in EmailView
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -101,12 +101,16 @@ class ThemeUtils {
|
||||
);
|
||||
}
|
||||
|
||||
static TextStyle textStyleBodyBody1({Color? color, FontWeight? fontWeight}) => TextStyle(
|
||||
static TextStyle textStyleBodyBody1({
|
||||
Color? color,
|
||||
FontWeight? fontWeight,
|
||||
double? fontSize,
|
||||
}) => TextStyle(
|
||||
fontFamily: ConstantsUI.fontApp,
|
||||
fontWeight: fontWeight ?? FontWeight.w500,
|
||||
letterSpacing: 0.0,
|
||||
fontSize: 16,
|
||||
height: 20 / 16,
|
||||
fontSize: fontSize ?? 16,
|
||||
height: 20 / (fontSize ?? 16),
|
||||
color: color,
|
||||
);
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -28,7 +29,7 @@ class EmailViewBottomBarWidgetStyles {
|
||||
BuildContext context,
|
||||
ResponsiveUtils responsiveUtils
|
||||
) {
|
||||
return TextStyle(
|
||||
return ThemeUtils.textStyleBodyBody1(
|
||||
fontSize: responsiveUtils.isPortraitMobile(context) ? 12 : 16,
|
||||
color: EmailViewBottomBarWidgetStyles.iconColor,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user