Use fontFamily for all style in Text widget
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
+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,
|
||||
|
||||
Reference in New Issue
Block a user