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';
class AppBarSendingQueueWidgetStyle {
@@ -23,11 +24,11 @@ class AppBarSendingQueueWidgetStyle {
}
}
static const TextStyle countStyle = TextStyle(
static TextStyle countStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 17,
color: AppColor.colorTextButton
);
static const TextStyle labelStyle = TextStyle(
static TextStyle labelStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 21,
color: Colors.black,
fontWeight: FontWeight.bold
@@ -1,5 +1,6 @@
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/offline_mode/model/sending_state.dart';
@@ -31,17 +32,17 @@ class SendingEmailTileStyle {
}
}
static TextStyle getTitleTextStyle(SendingState state) => TextStyle(
static TextStyle getTitleTextStyle(SendingState state) => ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 15,
color: state.getTitleSendingEmailItemColor(),
fontWeight: FontWeight.w600
);
static TextStyle getSubTitleTextStyle(SendingState state) => TextStyle(
static TextStyle getSubTitleTextStyle(SendingState state) => ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 13,
color: state.getSubTitleSendingEmailItemColor(),
fontWeight: FontWeight.normal
);
static TextStyle getTimeCreatedTextStyle(SendingState state) => TextStyle(
static TextStyle getTimeCreatedTextStyle(SendingState state) => ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 13,
color: state.getTitleSendingEmailItemColor(),
fontWeight: FontWeight.normal
@@ -1,4 +1,5 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
import 'package:tmail_ui_user/features/offline_mode/model/sending_state.dart';
@@ -9,7 +10,7 @@ class SendingStateWidgetStyle {
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(horizontal: 8, vertical: 6);
static TextStyle getTitleTextStyle(SendingState state) => TextStyle(
static TextStyle getTitleTextStyle(SendingState state) => ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 15,
color: state.getTitleColor(),
fontWeight: FontWeight.normal
@@ -1,6 +1,7 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/resources/image_paths.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:tmail_ui_user/features/sending_queue/presentation/utils/sending_queue_utils.dart';
@@ -36,7 +37,7 @@ class BannerMessageSendingQueueWidget extends StatelessWidget {
const SizedBox(width: 8),
Expanded(child: Text(
AppLocalizations.of(context).bannerMessageSendingQueueViewOnIOS,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 15,
color: Colors.black,
fontWeight: FontWeight.normal
@@ -2,6 +2,7 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/resources/image_paths.dart';
import 'package:core/presentation/utils/responsive_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/presentation/views/button/tmail_button_widget.dart';
import 'package:core/utils/platform_info.dart';
import 'package:flutter/material.dart';
@@ -47,7 +48,7 @@ class BottomBarSendingQueueWidget extends StatelessWidget {
borderRadius: 0,
backgroundColor: Colors.transparent,
iconColor: SendingEmailActionType.edit.getButtonIconColor(_canEditable ? ButtonState.enabled : ButtonState.disabled),
textStyle: TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 12,
color: SendingEmailActionType.edit.getButtonTitleColor(_canEditable ? ButtonState.enabled : ButtonState.disabled)
),
@@ -70,7 +71,7 @@ class BottomBarSendingQueueWidget extends StatelessWidget {
borderRadius: 0,
backgroundColor: Colors.transparent,
iconColor: SendingEmailActionType.resend.getButtonIconColor(_canResend ? ButtonState.enabled : ButtonState.disabled),
textStyle: TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 12,
color: SendingEmailActionType.resend.getButtonTitleColor(_canResend ? ButtonState.enabled : ButtonState.disabled)
),
@@ -90,7 +91,7 @@ class BottomBarSendingQueueWidget extends StatelessWidget {
borderRadius: 0,
backgroundColor: Colors.transparent,
iconColor: SendingEmailActionType.delete.getButtonIconColor(ButtonState.enabled),
textStyle: TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 12,
color: SendingEmailActionType.delete.getButtonTitleColor(ButtonState.enabled)
),