Use fontFamily for all style in Text widget
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
+3
-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 AppBarSendingQueueWidgetStyle {
|
||||
@@ -23,11 +24,11 @@ class AppBarSendingQueueWidgetStyle {
|
||||
}
|
||||
}
|
||||
|
||||
static const TextStyle countStyle = TextStyle(
|
||||
static TextStyle countStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 17,
|
||||
color: AppColor.colorTextButton
|
||||
);
|
||||
static const TextStyle labelStyle = TextStyle(
|
||||
static TextStyle labelStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 21,
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.bold
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
|
||||
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/offline_mode/model/sending_state.dart';
|
||||
|
||||
@@ -31,17 +32,17 @@ class SendingEmailTileStyle {
|
||||
}
|
||||
}
|
||||
|
||||
static TextStyle getTitleTextStyle(SendingState state) => TextStyle(
|
||||
static TextStyle getTitleTextStyle(SendingState state) => ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 15,
|
||||
color: state.getTitleSendingEmailItemColor(),
|
||||
fontWeight: FontWeight.w600
|
||||
);
|
||||
static TextStyle getSubTitleTextStyle(SendingState state) => TextStyle(
|
||||
static TextStyle getSubTitleTextStyle(SendingState state) => ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 13,
|
||||
color: state.getSubTitleSendingEmailItemColor(),
|
||||
fontWeight: FontWeight.normal
|
||||
);
|
||||
static TextStyle getTimeCreatedTextStyle(SendingState state) => TextStyle(
|
||||
static TextStyle getTimeCreatedTextStyle(SendingState state) => ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 13,
|
||||
color: state.getTitleSendingEmailItemColor(),
|
||||
fontWeight: FontWeight.normal
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:tmail_ui_user/features/offline_mode/model/sending_state.dart';
|
||||
|
||||
@@ -9,7 +10,7 @@ class SendingStateWidgetStyle {
|
||||
|
||||
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(horizontal: 8, vertical: 6);
|
||||
|
||||
static TextStyle getTitleTextStyle(SendingState state) => TextStyle(
|
||||
static TextStyle getTitleTextStyle(SendingState state) => ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 15,
|
||||
color: state.getTitleColor(),
|
||||
fontWeight: FontWeight.normal
|
||||
|
||||
Reference in New Issue
Block a user