Use fontFamily for all style in Text widget
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
+3
-2
@@ -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';
|
||||
|
||||
class AutocompleteSuggestionItemStyle {
|
||||
@@ -7,12 +8,12 @@ class AutocompleteSuggestionItemStyle {
|
||||
|
||||
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(vertical: 10, horizontal: 12);
|
||||
|
||||
static const TextStyle displayNameTextStyle = TextStyle(
|
||||
static TextStyle displayNameTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.normal
|
||||
);
|
||||
static const TextStyle emailAddressNameTextStyle = TextStyle(
|
||||
static TextStyle emailAddressNameTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: AppColor.colorHintSearchBar,
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.normal
|
||||
|
||||
@@ -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 AutocompleteTagItemStyle {
|
||||
@@ -11,7 +12,7 @@ class AutocompleteTagItemStyle {
|
||||
static const EdgeInsetsGeometry margin = EdgeInsetsDirectional.only(end: 8);
|
||||
static const EdgeInsetsGeometry padding = EdgeInsetsDirectional.only(start: 8, end: 4, top: 4, bottom: 4);
|
||||
|
||||
static const TextStyle labelTextStyle = TextStyle(
|
||||
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 17,
|
||||
fontWeight: FontWeight.normal
|
||||
|
||||
+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';
|
||||
|
||||
class AutoCompleteTagItemWebStyle {
|
||||
@@ -13,12 +14,12 @@ class AutoCompleteTagItemWebStyle {
|
||||
|
||||
static const Color collapsedBackgroundColor = AppColor.colorEmailAddressTag;
|
||||
|
||||
static const TextStyle labelTextStyle = TextStyle(
|
||||
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 17,
|
||||
fontWeight: FontWeight.w400
|
||||
);
|
||||
static const TextStyle collapsedTextStyle = TextStyle(
|
||||
static TextStyle collapsedTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 17,
|
||||
fontWeight: FontWeight.w400
|
||||
|
||||
+2
-1
@@ -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';
|
||||
|
||||
class AvatarSuggestionItemStyle {
|
||||
@@ -9,7 +10,7 @@ class AvatarSuggestionItemStyle {
|
||||
static const Color iconColor = AppColor.avatarColor;
|
||||
static const Color iconBorderColor = AppColor.colorShadowBgContentEmail;
|
||||
|
||||
static const TextStyle labelTextStyle = TextStyle(
|
||||
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600
|
||||
|
||||
@@ -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 AvatarTagItemStyle {
|
||||
@@ -7,7 +8,7 @@ class AvatarTagItemStyle {
|
||||
|
||||
static const Color iconBorderColor = AppColor.colorShadowBgContentEmail;
|
||||
|
||||
static const TextStyle labelTextStyle = TextStyle(
|
||||
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.white,
|
||||
fontSize: 8.57,
|
||||
fontWeight: FontWeight.w600
|
||||
|
||||
@@ -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 FilterMessageButtonStyle {
|
||||
@@ -18,7 +19,7 @@ class FilterMessageButtonStyle {
|
||||
static const EdgeInsetsGeometry buttonMargin = EdgeInsetsDirectional.only(start: 16);
|
||||
static const BorderRadius borderRadius = BorderRadius.all(Radius.circular(10));
|
||||
|
||||
static const TextStyle titleStyle = TextStyle(
|
||||
static TextStyle titleStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: AppColor.colorFilterMessageTitle);
|
||||
|
||||
@@ -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 SearchFilterButtonStyle {
|
||||
@@ -16,7 +17,7 @@ class SearchFilterButtonStyle {
|
||||
static const EdgeInsetsGeometry elementPadding = EdgeInsetsDirectional.only(start: 8);
|
||||
static const BorderRadius borderRadius = BorderRadius.all(Radius.circular(10));
|
||||
|
||||
static const TextStyle titleStyle = TextStyle(
|
||||
static TextStyle titleStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: AppColor.colorSearchFilterTitle);
|
||||
|
||||
Reference in New Issue
Block a user