Use fontFamily for all style in Text widget
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
+10
-6
@@ -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 AttachmentItemWidgetStyle {
|
||||
@@ -16,20 +17,23 @@ class AttachmentItemWidgetStyle {
|
||||
|
||||
static const Color borderColor = AppColor.attachmentFileBorderColor;
|
||||
|
||||
static const TextStyle labelTextStyle = TextStyle(
|
||||
static TextStyle labelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 14,
|
||||
color: AppColor.attachmentFileNameColor,
|
||||
fontWeight: FontWeight.w500
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
static const TextStyle dotsLabelTextStyle = TextStyle(
|
||||
static TextStyle dotsLabelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.attachmentFileNameColor,
|
||||
fontWeight: FontWeight.w500
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
static const TextStyle sizeLabelTextStyle = TextStyle(
|
||||
static TextStyle sizeLabelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.attachmentFileSizeColor,
|
||||
fontWeight: FontWeight.normal
|
||||
fontWeight: FontWeight.normal,
|
||||
);
|
||||
|
||||
static double getMaxWidthItem({
|
||||
|
||||
+10
-6
@@ -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 AttachmentListItemWidgetStyle {
|
||||
@@ -10,19 +11,22 @@ class AttachmentListItemWidgetStyle {
|
||||
|
||||
static const EdgeInsetsGeometry contentPadding = EdgeInsetsDirectional.all(12);
|
||||
|
||||
static const TextStyle labelTextStyle = TextStyle(
|
||||
static TextStyle labelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 14,
|
||||
color: AppColor.attachmentFileNameColor,
|
||||
fontWeight: FontWeight.w500
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
static const TextStyle dotsLabelTextStyle = TextStyle(
|
||||
static TextStyle dotsLabelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.attachmentFileNameColor,
|
||||
fontWeight: FontWeight.w500
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
static const TextStyle sizeLabelTextStyle = TextStyle(
|
||||
static TextStyle sizeLabelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.attachmentFileSizeColor,
|
||||
fontWeight: FontWeight.normal
|
||||
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 AttachmentListStyles {
|
||||
@@ -89,24 +90,28 @@ class AttachmentListStyles {
|
||||
static const FontWeight subTitleFontWeight = FontWeight.w400;
|
||||
static const FontWeight buttonFontWeight = FontWeight.w500;
|
||||
|
||||
static const TextStyle titleTextStyle = TextStyle(
|
||||
static TextStyle titleTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: titleFontSize,
|
||||
fontWeight: titleFontWeight,
|
||||
color: titleTextColor
|
||||
color: titleTextColor,
|
||||
);
|
||||
static const TextStyle subTitleTextStyle = TextStyle(
|
||||
static TextStyle subTitleTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: subTitleFontSize,
|
||||
fontWeight: subTitleFontWeight,
|
||||
color: subTitleTextColor
|
||||
color: subTitleTextColor,
|
||||
);
|
||||
static const TextStyle downloadAllButtonTextStyle = TextStyle(
|
||||
static TextStyle downloadAllButtonTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: titleFontSize,
|
||||
fontWeight: buttonFontWeight,
|
||||
color: downloadAllButtonTextColor
|
||||
color: downloadAllButtonTextColor,
|
||||
);
|
||||
static const TextStyle cancelButtonTextStyle = TextStyle(
|
||||
static TextStyle cancelButtonTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: titleFontSize,
|
||||
fontWeight: buttonFontWeight,
|
||||
color: cancelButtonTextColor
|
||||
color: cancelButtonTextColor,
|
||||
);
|
||||
}
|
||||
+7
-4
@@ -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 FeedbackDraggableAttachmentItemWidgetStyle {
|
||||
@@ -12,15 +13,17 @@ class FeedbackDraggableAttachmentItemWidgetStyle {
|
||||
|
||||
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(horizontal: 16, vertical: 12);
|
||||
|
||||
static const TextStyle labelTextStyle = TextStyle(
|
||||
static TextStyle labelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
static const TextStyle dotsLabelTextStyle = TextStyle(
|
||||
static TextStyle dotsLabelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.w500
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
|
||||
static const List<BoxShadow> shadows = [
|
||||
|
||||
Reference in New Issue
Block a user