Use fontFamily for all style in Text widget

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-07-15 09:26:07 +07:00
committed by Dat H. Pham
parent 991ab686a4
commit a9a322818a
186 changed files with 717 additions and 443 deletions
@@ -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:flutter/material.dart';
import 'package:tmail_ui_user/features/thread/domain/model/filter_message_option.dart';
@@ -21,10 +22,11 @@ class DefaultWebAppBarThreadWidgetStyle {
static const EdgeInsetsGeometry mailboxMenuPadding = EdgeInsets.all(5);
static const EdgeInsetsGeometry titlePadding = EdgeInsets.symmetric(horizontal: 16);
static const TextStyle titleTextStyle = TextStyle(
static TextStyle titleTextStyle =
ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 21,
color: Colors.black,
fontWeight: FontWeight.bold
fontWeight: FontWeight.bold,
);
static Color getFilterButtonColor(FilterMessageOption option) {
@@ -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:flutter/material.dart';
import 'package:tmail_ui_user/features/thread/domain/model/filter_message_option.dart';
@@ -22,15 +23,17 @@ class MobileAppBarThreadWidgetStyle {
static const EdgeInsetsGeometry mailboxMenuPadding = EdgeInsets.all(5);
static const EdgeInsetsGeometry titlePadding = EdgeInsets.symmetric(horizontal: 16);
static const TextStyle emailCounterTitleStyle = TextStyle(
static TextStyle emailCounterTitleStyle =
ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 15,
fontWeight: FontWeight.w400,
color: AppColor.steelGrayA540,
);
static const TextStyle titleTextStyle = TextStyle(
static TextStyle titleTextStyle =
ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 21,
color: Colors.black,
fontWeight: FontWeight.bold
fontWeight: FontWeight.bold,
);
static Color getFilterButtonColor(FilterMessageOption option) {
return option == FilterMessageOption.all
@@ -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:flutter/material.dart';
class SelectionWebAppBarThreadWidgetStyle {
@@ -18,9 +19,10 @@ class SelectionWebAppBarThreadWidgetStyle {
}
}
static const TextStyle emailCounterStyle = TextStyle(
static TextStyle emailCounterStyle =
ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 15,
fontWeight: FontWeight.w400,
color: AppColor.steelGrayA540
color: AppColor.steelGrayA540,
);
}
@@ -1,17 +1,19 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
class TitleAppBarThreadWidgetStyle {
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(vertical: 8, horizontal: 16);
static const TextStyle titleStyle = TextStyle(
static TextStyle titleStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 21,
color: Colors.black,
fontWeight: FontWeight.w700
fontWeight: FontWeight.w700,
);
static const TextStyle filterOptionStyle = TextStyle(
static TextStyle filterOptionStyle =
ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 11,
color: AppColor.colorContentEmail
color: AppColor.colorContentEmail,
);
}