Use fontFamily for all style in Text widget
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
+6
-5
@@ -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 FromComposerBottomSheetStyle {
|
||||
@@ -29,27 +30,27 @@ class FromComposerBottomSheetStyle {
|
||||
color: AppColor.colorBgSearchBar
|
||||
);
|
||||
|
||||
static const TextStyle appBarTitleTextStyle = TextStyle(
|
||||
static TextStyle appBarTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.w700,
|
||||
fontSize: 20.0,
|
||||
);
|
||||
static const TextStyle searchBarTextStyle = TextStyle(
|
||||
static TextStyle searchBarTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16.0,
|
||||
fontWeight: FontWeight.w600,
|
||||
);
|
||||
static const TextStyle searchHintTextStyle = TextStyle(
|
||||
static TextStyle searchHintTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: AppColor.loginTextFieldHintColor,
|
||||
fontSize: 16.0,
|
||||
fontWeight: FontWeight.w400,
|
||||
);
|
||||
static const TextStyle identityItemTitleTextStyle = TextStyle(
|
||||
static TextStyle identityItemTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16.0,
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
static const TextStyle identityItemSubTitleTextStyle = TextStyle(
|
||||
static TextStyle identityItemSubTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: AppColor.colorLabelQuotas
|
||||
|
||||
+4
-3
@@ -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 FromComposerMobileWidgetStyle {
|
||||
@@ -24,18 +25,18 @@ class FromComposerMobileWidgetStyle {
|
||||
)
|
||||
);
|
||||
|
||||
static const TextStyle prefixTextStyle = TextStyle(
|
||||
static TextStyle prefixTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: AppColor.colorLabelComposer
|
||||
);
|
||||
static const TextStyle buttonTitleTextStyle = TextStyle(
|
||||
static TextStyle buttonTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColor.colorCalendarEventUnread,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
);
|
||||
static const TextStyle buttonSubTitleTextStyle = TextStyle(
|
||||
static TextStyle buttonSubTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColor.colorLabelComposer,
|
||||
|
||||
+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 TabletBottomBarComposerWidgetStyle {
|
||||
@@ -18,7 +19,7 @@ class TabletBottomBarComposerWidgetStyle {
|
||||
static const EdgeInsetsGeometry padding = EdgeInsetsDirectional.symmetric(horizontal: 32, vertical: 12);
|
||||
static const EdgeInsetsGeometry iconPadding = EdgeInsetsDirectional.all(5);
|
||||
static const EdgeInsetsGeometry sendButtonPadding = EdgeInsetsDirectional.symmetric(vertical: 8, horizontal: 24);
|
||||
static const TextStyle sendButtonTextStyle = TextStyle(
|
||||
static TextStyle sendButtonTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 15,
|
||||
color: Colors.white,
|
||||
|
||||
Reference in New Issue
Block a user