Use fontFamily for all style in Text widget
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
+4
-2
@@ -1,6 +1,7 @@
|
||||
|
||||
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:flutter/material.dart';
|
||||
import 'package:tmail_ui_user/features/thread/domain/model/filter_message_option.dart';
|
||||
|
||||
@@ -21,10 +22,11 @@ class DefaultWebAppBarThreadWidgetStyle {
|
||||
static const EdgeInsetsGeometry mailboxMenuPadding = EdgeInsets.all(5);
|
||||
static const EdgeInsetsGeometry titlePadding = EdgeInsets.symmetric(horizontal: 16);
|
||||
|
||||
static const TextStyle titleTextStyle = TextStyle(
|
||||
static TextStyle titleTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 21,
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.bold
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
|
||||
static Color getFilterButtonColor(FilterMessageOption option) {
|
||||
|
||||
+6
-3
@@ -1,6 +1,7 @@
|
||||
|
||||
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:flutter/material.dart';
|
||||
import 'package:tmail_ui_user/features/thread/domain/model/filter_message_option.dart';
|
||||
|
||||
@@ -22,15 +23,17 @@ class MobileAppBarThreadWidgetStyle {
|
||||
static const EdgeInsetsGeometry mailboxMenuPadding = EdgeInsets.all(5);
|
||||
static const EdgeInsetsGeometry titlePadding = EdgeInsets.symmetric(horizontal: 16);
|
||||
|
||||
static const TextStyle emailCounterTitleStyle = TextStyle(
|
||||
static TextStyle emailCounterTitleStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: AppColor.steelGrayA540,
|
||||
);
|
||||
static const TextStyle titleTextStyle = TextStyle(
|
||||
static TextStyle titleTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 21,
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.bold
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
static Color getFilterButtonColor(FilterMessageOption option) {
|
||||
return option == FilterMessageOption.all
|
||||
|
||||
+4
-2
@@ -1,6 +1,7 @@
|
||||
|
||||
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:flutter/material.dart';
|
||||
|
||||
class SelectionWebAppBarThreadWidgetStyle {
|
||||
@@ -18,9 +19,10 @@ class SelectionWebAppBarThreadWidgetStyle {
|
||||
}
|
||||
}
|
||||
|
||||
static const TextStyle emailCounterStyle = TextStyle(
|
||||
static TextStyle emailCounterStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: AppColor.steelGrayA540
|
||||
color: AppColor.steelGrayA540,
|
||||
);
|
||||
}
|
||||
+6
-4
@@ -1,17 +1,19 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class TitleAppBarThreadWidgetStyle {
|
||||
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(vertical: 8, horizontal: 16);
|
||||
|
||||
static const TextStyle titleStyle = TextStyle(
|
||||
static TextStyle titleStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 21,
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.w700
|
||||
fontWeight: FontWeight.w700,
|
||||
);
|
||||
static const TextStyle filterOptionStyle = TextStyle(
|
||||
static TextStyle filterOptionStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 11,
|
||||
color: AppColor.colorContentEmail
|
||||
color: AppColor.colorContentEmail,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user