TF-3410 Fix wrong font size label Folders in MailBoxLeftMenu

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-03-12 14:04:34 +07:00
committed by Dat H. Pham
parent 5bccca7909
commit ed9aefcc26
3 changed files with 14 additions and 10 deletions
@@ -174,6 +174,18 @@ class ThemeUtils {
color: color, color: color,
); );
static TextStyle textStyleM3BodyMedium2({
Color? color,
FontWeight? fontWeight,
}) => TextStyle(
fontFamily: ConstantsUI.fontApp,
fontWeight: fontWeight ?? FontWeight.w600,
letterSpacing: 0.25,
fontSize: 14,
height: 20 / 14,
color: color,
);
static TextSelectionThemeData get _textSelectionTheme { static TextSelectionThemeData get _textSelectionTheme {
return const TextSelectionThemeData( return const TextSelectionThemeData(
cursorColor: AppColor.primaryColor, cursorColor: AppColor.primaryColor,
@@ -280,11 +280,7 @@ class MailboxView extends BaseMailboxView {
Expanded( Expanded(
child: Text( child: Text(
AppLocalizations.of(context).folders, AppLocalizations.of(context).folders,
style: const TextStyle( style: ThemeUtils.textStyleM3BodyMedium2(color: Colors.black),
fontSize: 15,
color: Colors.black,
fontWeight: FontWeight.bold,
),
), ),
), ),
Row(children: [ Row(children: [
@@ -185,11 +185,7 @@ class MailboxView extends BaseMailboxView {
), ),
child: Text( child: Text(
AppLocalizations.of(context).folders, AppLocalizations.of(context).folders,
style: const TextStyle( style: ThemeUtils.textStyleM3BodyMedium2(color: Colors.black),
fontSize: 15,
color: Colors.black,
fontWeight: FontWeight.bold,
),
), ),
), ),
), ),