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,5 +1,6 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -103,7 +104,7 @@ Widget buildTextButton(String text, {
child: Text(
text,
textAlign: TextAlign.center,
style: textStyle ?? const TextStyle(
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 17,
color: Colors.white,
fontWeight: FontWeight.w500)),
@@ -145,7 +146,7 @@ Widget buildButtonWrapText(String name, {
child: Text(name,
textAlign: TextAlign.center,
style: textStyle ??
const TextStyle(
ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 17,
fontWeight: FontWeight.w500,
color: Colors.white)),
@@ -2,6 +2,7 @@
import 'package:core/presentation/action/action_callback_define.dart';
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/style_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/presentation/views/container/tmail_container_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -211,7 +212,7 @@ class TMailButtonWidget extends StatelessWidget {
Text(
text,
textAlign: textAlign,
style: textStyle ?? const TextStyle(
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 12,
color: AppColor.colorTextButtonHeaderThread
),
@@ -251,7 +252,7 @@ class TMailButtonWidget extends StatelessWidget {
child: Text(
text,
textAlign: textAlign,
style: textStyle ?? const TextStyle(
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 12,
color: AppColor.colorTextButtonHeaderThread
),
@@ -264,7 +265,7 @@ class TMailButtonWidget extends StatelessWidget {
Text(
text,
textAlign: textAlign,
style: textStyle ?? const TextStyle(
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 12,
color: AppColor.colorTextButtonHeaderThread
),
@@ -295,7 +296,7 @@ class TMailButtonWidget extends StatelessWidget {
child: Text(
text,
textAlign: textAlign,
style: textStyle ?? const TextStyle(
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 12,
color: AppColor.colorTextButtonHeaderThread
),
@@ -308,7 +309,7 @@ class TMailButtonWidget extends StatelessWidget {
Text(
text,
textAlign: textAlign,
style: textStyle ?? const TextStyle(
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 12,
color: AppColor.colorTextButtonHeaderThread
),
@@ -350,7 +351,7 @@ class TMailButtonWidget extends StatelessWidget {
childWidget = Text(
text,
textAlign: textAlign,
style: textStyle ?? const TextStyle(
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 12,
color: AppColor.colorTextButtonHeaderThread
),