TF-3410 Fix wrong font size label Folders in MailBoxLeftMenu
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -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,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user