Use fontFamily for all style in Text widget
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -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 EmptyMailboxDialogOverlayStyles {
|
||||
@@ -23,24 +24,28 @@ class EmptyMailboxDialogOverlayStyles {
|
||||
static const Color emptyButtonBackground = Colors.transparent;
|
||||
static Color get shadowColor => Colors.grey.shade500;
|
||||
|
||||
static const TextStyle titleTextStyle = TextStyle(
|
||||
static TextStyle titleTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 17,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.black
|
||||
color: Colors.black,
|
||||
);
|
||||
static const TextStyle messageTextStyle = TextStyle(
|
||||
static TextStyle messageTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Colors.black
|
||||
color: Colors.black,
|
||||
);
|
||||
static const TextStyle buttonTextStyle = TextStyle(
|
||||
static TextStyle buttonTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Colors.black
|
||||
color: Colors.black,
|
||||
);
|
||||
static const TextStyle cleanButtonTextStyle = TextStyle(
|
||||
static TextStyle cleanButtonTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontWeight: FontWeight.w400,
|
||||
fontSize: 13,
|
||||
color: Colors.white
|
||||
color: Colors.white,
|
||||
);
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:core/presentation/views/button/tmail_button_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -51,7 +52,10 @@ class BottomBarSelectionMailboxWidget extends StatelessWidget {
|
||||
backgroundColor: Colors.transparent,
|
||||
flexibleText: true,
|
||||
tooltipMessage: action.getContextMenuTitle(AppLocalizations.of(context)),
|
||||
textStyle: const TextStyle(fontSize: 12, color: AppColor.colorTextButton),
|
||||
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.colorTextButton,
|
||||
),
|
||||
onTapActionCallback: () => onMailboxActionsClick.call(action, _listSelectionMailbox),
|
||||
));
|
||||
})
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:core/presentation/views/button/tmail_button_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -30,7 +31,10 @@ class CopySubaddressWidget extends StatelessWidget {
|
||||
subaddress,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(fontSize: 17.0, color: AppColor.colorMessageDialog),
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 17.0,
|
||||
color: AppColor.colorMessageDialog,
|
||||
),
|
||||
),
|
||||
),
|
||||
TMailButtonWidget.fromIcon(
|
||||
|
||||
@@ -50,7 +50,7 @@ class UserInformationWidget extends StatelessWidget {
|
||||
SelectableText(
|
||||
userName,
|
||||
maxLines: 1,
|
||||
style: const TextStyle(
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 17,
|
||||
color: AppColor.colorNameEmail,
|
||||
fontWeight: FontWeight.w600
|
||||
@@ -66,7 +66,10 @@ class UserInformationWidget extends StatelessWidget {
|
||||
onTap: onSubtitleClick,
|
||||
borderRadius: 20,
|
||||
padding: const EdgeInsetsDirectional.symmetric(horizontal: 8, vertical: 8),
|
||||
customStyle: const TextStyle(fontSize: 14, color: AppColor.colorTextButton),
|
||||
customStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 14,
|
||||
color: AppColor.colorTextButton,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user