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
@@ -19,9 +19,9 @@ class LoginInputDecorationBuilder extends InputDecorationBuilder {
prefixText: prefixText,
labelText: labelText,
floatingLabelBehavior: FloatingLabelBehavior.never,
labelStyle: labelStyle ?? const TextStyle(color: AppColor.textFieldLabelColor, fontSize: 16),
labelStyle: labelStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(color: AppColor.textFieldLabelColor, fontSize: 16),
hintText: hintText,
hintStyle: hintStyle ?? const TextStyle(color: AppColor.textFieldHintColor, fontSize: 16),
hintStyle: hintStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(color: AppColor.textFieldHintColor, fontSize: 16),
contentPadding: contentPadding ?? const EdgeInsetsDirectional.only(start: 25, top: 15, bottom: 15, end: 25),
filled: true,
fillColor: AppColor.textFieldBorderColor);
@@ -3,6 +3,7 @@ import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:core/presentation/utils/responsive_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:dartz/dartz.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
@@ -83,7 +84,7 @@ class LoginMessageWidget extends StatelessWidget {
}
),
textAlign: TextAlign.center,
style: TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 15,
fontWeight: FontWeight.w400,
color: viewState.fold(
@@ -1,5 +1,6 @@
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:core/presentation/views/button/tmail_button_widget.dart';
import 'package:core/presentation/views/text/text_form_field_builder.dart';
import 'package:flutter/material.dart';
@@ -68,7 +69,7 @@ class _LoginTextInputBuilderState extends State<LoginTextInputBuilder> {
textInputAction: widget.textInputAction,
autofillHints: widget.autofillHints,
controller: _controller,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.loginTextFieldHintColor,
fontSize: 16,
fontWeight: FontWeight.normal
@@ -83,17 +84,17 @@ class _LoginTextInputBuilderState extends State<LoginTextInputBuilder> {
bottom: 15,
end: 40
))
..setHintStyle(const TextStyle(
..setHintStyle(ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.loginTextFieldHintColor,
fontSize: 16,
fontWeight: FontWeight.normal
))
..setPrefixStyle(const TextStyle(
..setPrefixStyle(ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.loginTextFieldHintColor,
fontSize: 16,
fontWeight: FontWeight.normal
))
..setErrorTextStyle(const TextStyle(
..setErrorTextStyle(ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.loginTextFieldErrorBorder,
fontSize: 13,
fontWeight: FontWeight.normal
@@ -1,5 +1,6 @@
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/presentation/views/button/tmail_button_widget.dart';
import 'package:flutter/material.dart';
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
@@ -18,7 +19,10 @@ class TryAgainButton extends StatelessWidget {
Widget build(BuildContext context) {
return TMailButtonWidget.fromText(
text: AppLocalizations.of(context).tryAgain,
textStyle: const TextStyle(fontSize: 16, color: Colors.white),
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
color: Colors.white,
),
backgroundColor: AppColor.primaryColor,
onTapActionCallback: onRetry,
borderRadius: 10,