Use fontFamily for all style in Text widget
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:tmail_ui_user/features/email_recovery/presentation/model/email_recovery_time_type.dart';
|
||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||
@@ -69,7 +70,7 @@ enum EmailRecoveryField {
|
||||
}
|
||||
|
||||
TextStyle getTitleTextStyle() {
|
||||
return const TextStyle(
|
||||
return ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: AppColor.colorContentEmail,
|
||||
@@ -89,7 +90,7 @@ enum EmailRecoveryField {
|
||||
color = AppColor.colorHintSearchBar;
|
||||
break;
|
||||
}
|
||||
return TextStyle(
|
||||
return ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: color,
|
||||
|
||||
+2
-1
@@ -1,3 +1,4 @@
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:dropdown_button2/dropdown_button2.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -26,7 +27,7 @@ class DateSelectionDropdownButtonStyles {
|
||||
color: Colors.white,
|
||||
);
|
||||
|
||||
static const TextStyle selectedValueTexStyle = TextStyle(
|
||||
static TextStyle selectedValueTexStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Colors.black,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class EmailRecoveryFormStyles {
|
||||
@@ -11,7 +12,7 @@ class EmailRecoveryFormStyles {
|
||||
vertical: 12,
|
||||
);
|
||||
|
||||
static const TextStyle titleTextStyle = TextStyle(
|
||||
static TextStyle titleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: Colors.black,
|
||||
|
||||
+2
-1
@@ -1,3 +1,4 @@
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AvatarSuggestionItemWidgetStyles {
|
||||
@@ -5,7 +6,7 @@ class AvatarSuggestionItemWidgetStyles {
|
||||
static const double height = 40.0;
|
||||
static const double borderWidth = 1.0;
|
||||
|
||||
static const TextStyle textStyle = TextStyle(
|
||||
static TextStyle textStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w400
|
||||
|
||||
+2
-1
@@ -1,10 +1,11 @@
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AvatarTagItemWidgetStyles {
|
||||
static const double size = 24.0;
|
||||
static const double borderWidth = 0.21;
|
||||
|
||||
static const TextStyle textStyle = TextStyle(
|
||||
static TextStyle textStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.white,
|
||||
fontSize: 8.57,
|
||||
fontWeight: FontWeight.w600
|
||||
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:tmail_ui_user/features/composer/presentation/styles/composer_style.dart';
|
||||
|
||||
@@ -19,12 +20,12 @@ class SuggestionItemWidgetStyles {
|
||||
borderRadius: BorderRadius.all(Radius.circular(20))
|
||||
);
|
||||
|
||||
static const TextStyle subTitleTextOriginStyle = TextStyle(
|
||||
static TextStyle subTitleTextOriginStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: AppColor.colorHintSearchBar,
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.normal
|
||||
);
|
||||
static const TextStyle subTitleWordSearchedStyle = TextStyle(
|
||||
static TextStyle subTitleWordSearchedStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.bold
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class SuggestionTagItemWidgetStyles {
|
||||
@@ -24,7 +25,7 @@ class SuggestionTagItemWidgetStyles {
|
||||
width: 1,
|
||||
);
|
||||
|
||||
static const TextStyle labelStyle = TextStyle(
|
||||
static TextStyle labelStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 17,
|
||||
fontWeight: FontWeight.w400
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class TextInputFieldWidgetStyles {
|
||||
@@ -42,7 +43,7 @@ class TextInputFieldWidgetStyles {
|
||||
)
|
||||
);
|
||||
|
||||
static const TextStyle inputtedTextStyle = TextStyle(
|
||||
static TextStyle inputtedTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Colors.black,
|
||||
|
||||
+2
-1
@@ -1,3 +1,4 @@
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:tmail_ui_user/features/composer/presentation/styles/composer_style.dart';
|
||||
|
||||
@@ -34,7 +35,7 @@ class TextInputSuggestionFieldWidgetStyles {
|
||||
borderSide: BorderSide.none,
|
||||
);
|
||||
|
||||
static const TextStyle inputFieldTextStyle = TextStyle(
|
||||
static TextStyle inputFieldTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w400,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class LimitsBanner extends StatelessWidget {
|
||||
@@ -20,7 +21,7 @@ class LimitsBanner extends StatelessWidget {
|
||||
child: Center(
|
||||
child: Text(
|
||||
bannerContent,
|
||||
style: const TextStyle(
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 16,
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.bold,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:core/presentation/views/button/icon_button_web.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:tmail_ui_user/features/email_recovery/presentation/styles/text_action_button_widget_styles.dart';
|
||||
@@ -25,7 +26,7 @@ class TextActionButtonWidget extends StatelessWidget {
|
||||
radius: TextActionButtonWidgetStyles.radius,
|
||||
height: TextActionButtonWidgetStyles.height,
|
||||
minWidth: minWidth,
|
||||
textStyle: TextStyle(
|
||||
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: TextActionButtonWidgetStyles.fontSize,
|
||||
color: colorText,
|
||||
fontWeight: FontWeight.w500
|
||||
|
||||
Reference in New Issue
Block a user