Use fontFamily for all style in Text widget

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-07-15 09:26:07 +07:00
committed by Dat H. Pham
parent 991ab686a4
commit a9a322818a
186 changed files with 717 additions and 443 deletions
@@ -1,5 +1,6 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/presentation/views/bottom_popup/cupertino_action_sheet_builder.dart';
import 'package:core/utils/platform_info.dart';
import 'package:flutter/cupertino.dart';
@@ -81,8 +82,13 @@ mixin PopupContextMenuActionMixin {
cursor: PlatformInfo.isWeb ? WidgetStateMouseCursor.clickable : MouseCursor.defer,
child: CupertinoActionSheetAction(
child: Text(
AppLocalizations.of(context).cancel,
style: const TextStyle(fontWeight: FontWeight.w500, fontSize: 20, color: AppColor.colorTextButton)),
AppLocalizations.of(context).cancel,
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontWeight: FontWeight.w500,
fontSize: 20,
color: AppColor.colorTextButton,
),
),
onPressed: () => popBack(),
),
);
@@ -30,7 +30,7 @@ mixin PopupMenuWidgetMixin {
const SizedBox(width: 12),
Expanded(child: Text(
nameAction,
style: styleName ?? const TextStyle(
style: styleName ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 17,
fontWeight: FontWeight.normal,
color: Colors.black)
@@ -1,6 +1,7 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/style_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
import 'package:tmail_ui_user/features/manage_account/presentation/extensions/datetime_extension.dart';
@@ -59,7 +60,7 @@ class BorderButtonField<T> extends StatelessWidget {
);
if (label != null) {
return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
Text(label!, style: const TextStyle(
Text(label!, style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 14,
fontWeight: FontWeight.normal,
color: AppColor.colorContentEmail)),
@@ -73,12 +74,12 @@ class BorderButtonField<T> extends StatelessWidget {
TextStyle? _getTextStyle(T? value) {
if (hintText != null && value == null) {
return const TextStyle(
return ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.normal,
color: AppColor.colorHintInputCreateMailbox);
}
return textStyle ?? const TextStyle(
return textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.normal,
color: Colors.black);
@@ -2,6 +2,7 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/resources/image_paths.dart';
import 'package:core/presentation/utils/style_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/presentation/views/floating_button/scrolling_floating_button_animated.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -37,7 +38,7 @@ class ComposeFloatingButton extends StatelessWidget {
child: Text(AppLocalizations.of(context).compose,
overflow: CommonTextStyle.defaultTextOverFlow,
softWrap: CommonTextStyle.defaultSoftWrap,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.white,
fontSize: 16.0,
fontWeight: FontWeight.w500
@@ -2,6 +2,7 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/resources/image_paths.dart';
import 'package:core/presentation/utils/style_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:dropdown_button2/dropdown_button2.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -67,7 +68,7 @@ class DropDownButtonWidget<T> extends StatelessWidget {
? Row(children: [
Expanded(child: Text(
_getTextItemDropdown(context, item: itemSelected),
style: TextStyle(fontSize: 16,
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 16,
fontWeight: FontWeight.normal,
color: Colors.black.withOpacity(opacity)),
maxLines: 1,
@@ -85,7 +86,7 @@ class DropDownButtonWidget<T> extends StatelessWidget {
height: heightItem,
child: Row(children: [
Expanded(child: Text(_getTextItemDropdown(context, item: item),
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.normal,
color: Colors.black),
@@ -121,7 +122,7 @@ class DropDownButtonWidget<T> extends StatelessWidget {
child: Row(children: [
Expanded(child: Text(
_getTextItemDropdown(context, item: itemSelected),
style: TextStyle(fontSize: 16,
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 16,
fontWeight: FontWeight.normal,
color: itemSelected != null ? Colors.black.withOpacity(opacity) : AppColor.textFieldHintColor),
maxLines: 1,
@@ -1,3 +1,4 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/widgets.dart';
import 'package:tmail_ui_user/features/base/styles/hyper_link_widget_styles.dart';
@@ -14,7 +15,7 @@ class HyperLinkWidget extends StatelessWidget {
return Text.rich(
TextSpan(
text: urlString,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: HyperLinkWidgetStyles.textColor,
fontSize: HyperLinkWidgetStyles.textSize,
decoration: TextDecoration.underline
@@ -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';
typedef OnTapMaterialTextButton = Function();
@@ -48,7 +49,7 @@ class MaterialTextButton extends StatelessWidget {
label,
overflow: overflow,
softWrap: softWrap,
style: customStyle ?? TextStyle(
style: customStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: labelSize,
color: labelColor ?? AppColor.colorTextButton,
fontWeight: labelWeight ?? FontWeight.normal
@@ -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';
import 'package:flutter_svg/flutter_svg.dart';
@@ -47,7 +48,7 @@ class MaterialTextIconButton extends StatelessWidget {
),
label: Text(
label,
style: labelStyle ?? TextStyle(
style: labelStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
color: labelColor ?? AppColor.colorTextButton,
fontWeight: FontWeight.w500
@@ -1,4 +1,5 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:pointer_interceptor/pointer_interceptor.dart';
@@ -38,7 +39,7 @@ class PopupItemNoIconWidget extends StatelessWidget {
child: Row(children: [
Expanded(child: Text(
_nameAction,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 17,
color: Colors.black,
fontWeight: FontWeight.normal
@@ -1,5 +1,6 @@
import 'package:core/presentation/resources/image_paths.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:get/get.dart';
@@ -31,7 +32,7 @@ class RecentItemTileWidget<T> extends StatelessWidget {
Expanded(
child: Text(
_getTitle(item),
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 15,
fontWeight: FontWeight.normal,
color: Colors.black
@@ -30,19 +30,19 @@ class TextInputDecorationBuilder extends InputDecorationBuilder {
prefixText: prefixText,
labelText: labelText,
floatingLabelBehavior: FloatingLabelBehavior.never,
labelStyle: labelStyle ?? const TextStyle(
labelStyle: labelStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.black,
fontSize: 16),
hintText: hintText,
isDense: true,
hintStyle: hintStyle ?? const TextStyle(
hintStyle: hintStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.loginTextFieldHintColor,
fontSize: 16),
contentPadding: contentPadding ?? const EdgeInsets.symmetric(
horizontal: 12,
vertical: 12),
errorText: errorText,
errorStyle: errorTextStyle ?? const TextStyle(
errorStyle: errorTextStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.colorInputBorderErrorVerifyName,
fontSize: 13),
filled: true,
@@ -41,7 +41,7 @@ class TextInputFieldBuilder extends StatelessWidget {
if (label != null)
...[
Text(isMandatory ? '${label!}*' : label!,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 14,
fontWeight: FontWeight.normal,
color: AppColor.colorContentEmail)),
@@ -52,7 +52,7 @@ class TextInputFieldBuilder extends StatelessWidget {
textInputAction: TextInputAction.next,
controller: editingController,
focusNode: focusNode,
textStyle: const TextStyle(color: Colors.black, fontSize: 16),
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(color: Colors.black, fontSize: 16),
keyboardType: inputType ?? TextInputType.text,
textDirection: DirectionUtils.getDirectionByLanguage(context),
minLines: minLines,
@@ -7,7 +7,6 @@ class UserAvatarBuilder extends StatelessWidget {
final double? size;
final TextStyle? textStyle;
final EdgeInsetsGeometry? padding;
final TextStyle? textStyle;
final VoidCallback? onTapAction;
const UserAvatarBuilder({
@@ -16,7 +15,6 @@ class UserAvatarBuilder extends StatelessWidget {
this.size,
this.textStyle,
this.padding,
this.textStyle,
this.onTapAction,
}) : super(key: key);
@@ -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 AttachmentHeaderComposerWidgetStyle {
@@ -13,12 +14,12 @@ class AttachmentHeaderComposerWidgetStyle {
static const EdgeInsetsGeometry sizeLabelPadding = EdgeInsetsDirectional.symmetric(horizontal: 5, vertical: 2);
static const EdgeInsetsGeometry padding = EdgeInsetsDirectional.all(8);
static const TextStyle labelTextSize = TextStyle(
static TextStyle labelTextSize = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 13,
color: AppColor.colorLabelComposer,
fontWeight: FontWeight.w500
);
static const TextStyle sizeLabelTextSize = TextStyle(
static TextStyle sizeLabelTextSize = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 12,
color: Colors.white,
fontWeight: FontWeight.w500
@@ -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 AttachmentItemComposerWidgetStyle {
@@ -17,19 +18,22 @@ class AttachmentItemComposerWidgetStyle {
static const EdgeInsetsGeometry deleteIconPadding = EdgeInsetsDirectional.all(3);
static const EdgeInsetsGeometry progressLoadingPadding = EdgeInsetsDirectional.only(top: 8);
static const TextStyle labelTextStyle = TextStyle(
static TextStyle labelTextStyle =
ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 14,
color: Colors.black,
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 TextStyle sizeLabelTextStyle = TextStyle(
static TextStyle sizeLabelTextStyle =
ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 11,
color: AppColor.colorLabelComposer,
fontWeight: FontWeight.w500
fontWeight: FontWeight.w500,
);
}
@@ -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:core/utils/platform_info.dart';
import 'package:flutter/material.dart';
@@ -42,7 +43,7 @@ class ComposerStyle {
static const EdgeInsetsGeometry popupItemPadding = EdgeInsetsDirectional.symmetric(horizontal: 12);
static const EdgeInsetsGeometry insertImageLoadingBarMargin = EdgeInsetsDirectional.only(top: 12);
static const TextStyle popupItemTextStyle = TextStyle(
static TextStyle popupItemTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.black,
fontSize: 16,
fontWeight: FontWeight.w500
@@ -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 DraggableRecipientTagWidgetStyle {
@@ -13,7 +14,7 @@ class DraggableRecipientTagWidgetStyle {
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(horizontal: 6, vertical: 3);
static const EdgeInsetsGeometry labelPadding = EdgeInsets.symmetric(horizontal: 8);
static const TextStyle labelTextStyle = TextStyle(
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.white,
fontSize: 17,
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 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
@@ -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,
@@ -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,
@@ -31,7 +31,7 @@ class RecipientComposerWidgetStyle {
static const EdgeInsetsGeometry recipientMargin = EdgeInsetsDirectional.only(top: 12);
static const EdgeInsetsGeometry enableRecipientButtonMargin = EdgeInsetsDirectional.only(top: 10);
static const TextStyle prefixButtonTextStyle = TextStyle(
static TextStyle prefixButtonTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontFamily: ConstantsUI.fontApp,
fontSize: 15,
fontWeight: FontWeight.w400,
@@ -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 RecipientSuggestionItemWidgetStyle {
@@ -8,12 +9,12 @@ class RecipientSuggestionItemWidgetStyle {
static const EdgeInsetsGeometry suggestionDuplicatedMargin = EdgeInsets.all(8.0);
static const EdgeInsetsGeometry labelPadding = EdgeInsets.symmetric(horizontal: 16.0);
static const TextStyle labelTextStyle = TextStyle(
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.colorHintSearchBar,
fontSize: 13,
fontWeight: FontWeight.normal
);
static const TextStyle labelHighlightTextStyle = TextStyle(
static TextStyle labelHighlightTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.black,
fontSize: 13,
fontWeight: FontWeight.bold
@@ -1,3 +1,4 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
class RecipientTagItemWidgetStyle {
@@ -12,7 +13,7 @@ class RecipientTagItemWidgetStyle {
static const EdgeInsetsGeometry webMobileCounterMargin = EdgeInsetsDirectional.only(start: 8);
static const EdgeInsetsGeometry webCounterMargin = EdgeInsetsDirectional.only(top: 8, start: 8);
static const TextStyle labelTextStyle = TextStyle(
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.black,
fontSize: 17,
fontWeight: FontWeight.w400
@@ -1,5 +1,4 @@
import 'package:core/presentation/constants/constants_ui.dart';
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
@@ -26,11 +25,7 @@ class BottomBarComposerWidgetStyle {
static const EdgeInsetsGeometry richTextIconPadding = EdgeInsetsDirectional.all(2);
static const EdgeInsetsGeometry popupItemPadding = EdgeInsetsDirectional.symmetric(horizontal: 12);
static const TextStyle sendButtonTextStyle = TextStyle(
fontFamily: ConstantsUI.fontApp,
fontWeight: FontWeight.w500,
fontSize: 17,
height: 22 / 17,
static TextStyle sendButtonTextStyle = ThemeUtils.textStyleHeadingHeadingSmall().copyWith(
color: Colors.white,
letterSpacing: -0.41,
);
@@ -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';
import 'package:tmail_ui_user/features/composer/presentation/styles/web/bottom_bar_composer_widget_style.dart';
@@ -20,7 +21,7 @@ class DropZoneWidgetStyle {
top: 8
);
static const TextStyle labelTextStyle = TextStyle(
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.black,
fontSize: 22,
fontWeight: FontWeight.w600
@@ -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 DropdownButtonFontSizeWidgetStyle {
@@ -14,7 +15,7 @@ class DropdownButtonFontSizeWidgetStyle {
static const EdgeInsetsGeometry padding = EdgeInsets.all(4);
static const EdgeInsetsGeometry labelPadding = EdgeInsets.symmetric(horizontal: 16);
static const TextStyle labelTextStyle = TextStyle(
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.w500,
color: AppColor.colorLabelRichText
@@ -63,32 +63,32 @@ class FromComposerDropDownWidgetStyle {
height: 72,
overlayColor: WidgetStateProperty.resolveWith<Color>((Set<WidgetState> states) => Colors.white)
);
static const TextStyle avatarTextStyle = TextStyle(
static TextStyle avatarTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.w600,
color: Colors.black,
);
static const TextStyle dropdownItemTitleTextStyle = TextStyle(
static TextStyle dropdownItemTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.w500,
color: AppColor.colorDropDownItemTitleComposer,
);
static const TextStyle dropdownItemSubTitleTextStyle = TextStyle(
static TextStyle dropdownItemSubTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 13,
fontWeight: FontWeight.w400,
color: AppColor.colorLabelQuotas
);
static const TextStyle dropdownTitleTextStyle = TextStyle(
static TextStyle dropdownTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 14,
fontWeight: FontWeight.w500,
color: AppColor.colorDropDownTitleComposer,
);
static const TextStyle dropdownButtonTitleTextStyle = TextStyle(
static TextStyle dropdownButtonTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.w500,
color: AppColor.colorCalendarEventUnread
);
static const TextStyle dropdownButtonSubTitleTextStyle = TextStyle(
static TextStyle dropdownButtonSubTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.w500,
color: AppColor.colorLabelComposer
@@ -1,8 +1,9 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
class ItemMenuFontSizeWidgetStyle {
static const TextStyle labelTextStyle = TextStyle(
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.w500,
color: Colors.black,
@@ -75,7 +75,7 @@ class AttachmentItemComposerWidget extends StatelessWidget with AppLoaderMixin {
? ExtendedText(
fileName,
maxLines: 1,
overflowWidget: const TextOverflowWidget(
overflowWidget: TextOverflowWidget(
position: TextOverflowPosition.middle,
clearType: TextOverflowClearType.clipRect,
child: Text(
@@ -1,6 +1,7 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/style_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:dropdown_button2/dropdown_button2.dart';
import 'package:flutter/material.dart';
import 'package:pointer_interceptor/pointer_interceptor.dart';
@@ -106,10 +107,11 @@ class DropDownMenuHeaderStyleWidget extends StatelessWidget {
Widget _buildHeaderStyle(String name, double size, FontWeight fontWeight) {
return Text(name,
style: TextStyle(
fontSize: size,
fontWeight: fontWeight,
color: Colors.black),
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: size,
fontWeight: fontWeight,
color: Colors.black,
),
maxLines: 1,
softWrap: CommonTextStyle.defaultSoftWrap,
overflow: CommonTextStyle.defaultTextOverFlow);
@@ -1,20 +1,23 @@
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:core/utils/platform_info.dart';
import 'package:flutter/material.dart';
class ContactItemWidgetStyle {
static const TextStyle nameAddressTextStyle = TextStyle(
static TextStyle nameAddressTextStyle =
ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.black,
fontSize: 15,
fontWeight: FontWeight.w600
fontWeight: FontWeight.w600,
);
static const TextStyle emailAddressTextStyle = TextStyle(
static TextStyle emailAddressTextStyle =
ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.colorSubtitle,
fontSize: 13,
fontWeight: FontWeight.w400
fontWeight: FontWeight.w400,
);
static EdgeInsetsGeometry getItemPadding(
@@ -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:core/utils/platform_info.dart';
import 'package:flutter/material.dart';
@@ -8,16 +9,18 @@ class ContactViewStyle {
static const double viewMaxHeight = 624.0;
static const double viewMaxWidth = 558.0;
static TextStyle searchInputHintTextStyle = const TextStyle(
static TextStyle searchInputHintTextStyle =
ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 15,
fontWeight: FontWeight.w400,
color: AppColor.colorHintSearchBar
color: AppColor.colorHintSearchBar,
);
static TextStyle searchInputTextStyle = const TextStyle(
static TextStyle searchInputTextStyle =
ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 15,
fontWeight: FontWeight.w400,
color: Colors.black
color: Colors.black,
);
static double getContactViewHeight(
@@ -2,6 +2,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:tmail_ui_user/features/contact/presentation/styles/app_bar_contact_widget_style.dart';
@@ -37,7 +38,7 @@ class AppBarContactWidget extends StatelessWidget {
children: [
Text(
title ?? AppLocalizations.of(context).contact,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.black
@@ -2,6 +2,7 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/resources/image_paths.dart';
import 'package:core/presentation/utils/style_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/presentation/views/avatar/gradient_circle_avatar_icon.dart';
import 'package:core/utils/direction_utils.dart';
import 'package:core/utils/platform_info.dart';
@@ -53,10 +54,11 @@ class ContactInputTagItem extends StatelessWidget {
maxLines: 1,
softWrap: CommonTextStyle.defaultSoftWrap,
overflow: CommonTextStyle.defaultTextOverFlow,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 14,
fontWeight: FontWeight.normal,
color: Colors.black)
color: Colors.black,
),
),
deleteIcon: deleteContactCallbackAction != null
? SvgPicture.asset(
@@ -66,7 +68,11 @@ class ContactInputTagItem extends StatelessWidget {
colorFilter: AppColor.colorDeleteContactIcon.asFilter(),
fit: BoxFit.fill)
: null,
labelStyle: const TextStyle(color: Colors.black, fontSize: 14, fontWeight: FontWeight.normal),
labelStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.black,
fontSize: 14,
fontWeight: FontWeight.normal,
),
backgroundColor: _getTagBackgroundColor(),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20),
@@ -1,6 +1,7 @@
import 'package:core/presentation/extensions/capitalize_extension.dart';
import 'package:core/presentation/extensions/color_extension.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:tmail_ui_user/main/localizations/app_localizations.dart';
@@ -33,7 +34,7 @@ class ContactListActionWidget extends StatelessWidget {
minWidth: 156,
maxLines: 1,
textAlign: TextAlign.center,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontWeight: FontWeight.w500,
fontSize: 17,
color: AppColor.primaryColor
@@ -51,7 +52,7 @@ class ContactListActionWidget extends StatelessWidget {
minWidth: 156,
maxLines: 1,
textAlign: TextAlign.center,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontWeight: FontWeight.w500,
fontSize: 17,
color: Colors.white
@@ -2,6 +2,7 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/resources/image_paths.dart';
import 'package:core/presentation/utils/style_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/presentation/views/avatar/gradient_circle_avatar_icon.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -46,7 +47,7 @@ class ContactSuggestionBoxItem extends StatelessWidget {
maxLines: 1,
overflow: CommonTextStyle.defaultTextOverFlow,
softWrap: CommonTextStyle.defaultSoftWrap,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.black,
fontSize: 16,
fontWeight: FontWeight.w500)
@@ -59,7 +60,7 @@ class ContactSuggestionBoxItem extends StatelessWidget {
maxLines: 1,
overflow: CommonTextStyle.defaultTextOverFlow,
softWrap: CommonTextStyle.defaultSoftWrap,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.colorEmailAddressFull,
fontSize: 14,
fontWeight: FontWeight.normal)
@@ -129,7 +129,7 @@ class DestinationPickerView extends GetWidget<DestinationPickerController>
child: Text(
AppLocalizations.of(context).selectParentFolder,
textAlign: TextAlign.left,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 13,
color: AppColor.colorHintSearchBar,
fontWeight: FontWeight.normal)),
@@ -220,7 +220,7 @@ class DestinationPickerView extends GetWidget<DestinationPickerController>
controller: controller.nameInputController,
textDirection: DirectionUtils.getDirectionByLanguage(context),
maxLines: 1,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.colorNameEmail,
fontSize: 16,
overflow: CommonTextStyle.defaultTextOverFlow),
@@ -2,6 +2,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/style_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/utils/platform_info.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -97,7 +98,7 @@ class DestinationPickerSearchMailboxItemBuilder extends StatelessWidget {
maxLines: 1,
overflow: CommonTextStyle.defaultTextOverFlow,
softWrap: CommonTextStyle.defaultSoftWrap,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 15,
color: Colors.black
),
@@ -111,7 +112,7 @@ class DestinationPickerSearchMailboxItemBuilder extends StatelessWidget {
maxLines: 1,
overflow: CommonTextStyle.defaultTextOverFlow,
softWrap: CommonTextStyle.defaultSoftWrap,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 11,
color: AppColor.colorMailboxPath,
fontWeight: FontWeight.normal
@@ -123,7 +124,7 @@ class DestinationPickerSearchMailboxItemBuilder extends StatelessWidget {
maxLines: 1,
softWrap: CommonTextStyle.defaultSoftWrap,
overflow: CommonTextStyle.defaultTextOverFlow,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 11,
color: AppColor.colorEmailAddressFull,
fontWeight: FontWeight.normal
@@ -55,7 +55,7 @@ class TopBarDestinationPickerBuilder extends StatelessWidget {
softWrap: CommonTextStyle.defaultSoftWrap,
overflow: CommonTextStyle.defaultTextOverFlow,
textAlign: TextAlign.center,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 20,
color: Colors.black,
fontWeight: FontWeight.w700))),
@@ -103,7 +103,7 @@ class TopBarDestinationPickerBuilder extends StatelessWidget {
softWrap: CommonTextStyle.defaultSoftWrap,
overflow: CommonTextStyle.defaultTextOverFlow,
textAlign: TextAlign.center,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 15,
color: AppColor.colorTextButton,
fontWeight: FontWeight.normal))
@@ -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({
@@ -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,
);
}
@@ -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 = [
@@ -81,7 +81,7 @@ class AttachmentItemWidget extends StatelessWidget {
? ExtendedText(
(attachment.name ?? ''),
maxLines: 1,
overflowWidget: const TextOverflowWidget(
overflowWidget: TextOverflowWidget(
position: TextOverflowPosition.middle,
clearType: TextOverflowClearType.clipRect,
child: Text(
@@ -68,7 +68,7 @@ class AttachmentListItemWidget extends StatelessWidget {
ExtendedText(
(attachment.name ?? ''),
maxLines: 1,
overflowWidget: const TextOverflowWidget(
overflowWidget: TextOverflowWidget(
position: TextOverflowPosition.middle,
clearType: TextOverflowClearType.clipRect,
child: Text(
@@ -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:core/utils/platform_info.dart';
import 'package:flutter/material.dart';
@@ -44,7 +45,7 @@ class AttachmentsInfo extends StatelessWidget {
numberOfAttachments,
totalSizeInfo,
),
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: EmailAttachmentsStyles.headerTextSize,
fontWeight: EmailAttachmentsStyles.headerFontWeight,
color: EmailAttachmentsStyles.headerTextColor
@@ -58,7 +59,7 @@ class AttachmentsInfo extends StatelessWidget {
backgroundColor: Colors.transparent,
borderRadius: EmailAttachmentsStyles.buttonBorderRadius,
padding: EmailAttachmentsStyles.buttonPadding,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: EmailAttachmentsStyles.buttonTextSize,
color: EmailAttachmentsStyles.buttonTextColor,
fontWeight: EmailAttachmentsStyles.buttonFontWeight
@@ -77,7 +78,7 @@ class AttachmentsInfo extends StatelessWidget {
backgroundColor: Colors.transparent,
borderRadius: EmailAttachmentsStyles.buttonBorderRadius,
padding: EmailAttachmentsStyles.buttonPadding,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: EmailAttachmentsStyles.buttonTextSize,
color: EmailAttachmentsStyles.buttonTextColor,
fontWeight: EmailAttachmentsStyles.buttonFontWeight
@@ -1,4 +1,5 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:jmap_dart_client/jmap/mail/calendar/properties/attendee/calendar_attendee.dart';
@@ -23,7 +24,7 @@ class AttendeeWidget extends StatelessWidget {
Widget build(BuildContext context) {
return Text.rich(
TextSpan(
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: AttendeeWidgetStyles.textSize,
fontWeight: FontWeight.w500,
color: AttendeeWidgetStyles.textColor
@@ -34,7 +35,7 @@ class AttendeeWidget extends StatelessWidget {
if (attendee.mailto?.mailAddress.value.isNotEmpty == true)
TextSpan(
text: ' <${attendee.mailto!.mailAddress.value}> ',
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AttendeeWidgetStyles.mailtoColor,
fontSize: AttendeeWidgetStyles.textSize,
fontWeight: FontWeight.w500
@@ -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';
import 'package:jmap_dart_client/jmap/mail/calendar/calendar_event.dart';
import 'package:tmail_ui_user/features/email/presentation/extensions/calendar_event_extension.dart';
@@ -53,7 +54,7 @@ class CalendarDateIconWidget extends StatelessWidget {
child: Text(
calendarEvent.monthStartDateAsString,
textAlign: TextAlign.center,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: CalendarIconWidgetStyles.headerTextSize,
fontWeight: FontWeight.w400,
color: Colors.white
@@ -64,7 +65,7 @@ class CalendarDateIconWidget extends StatelessWidget {
padding: const EdgeInsets.all(CalendarIconWidgetStyles.bodyContentPadding),
child: Text(
calendarEvent.dayStartDateAsString,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: CalendarIconWidgetStyles.bodyDayTextSize,
fontWeight: FontWeight.w700,
color: Colors.black
@@ -79,7 +80,7 @@ class CalendarDateIconWidget extends StatelessWidget {
padding: const EdgeInsets.all(CalendarIconWidgetStyles.bodyContentPadding),
child: Text(
calendarEvent.weekDayStartDateAsString,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: CalendarIconWidgetStyles.bodyWeekDayTextSize,
fontWeight: FontWeight.w400,
color: Colors.black
@@ -1,5 +1,6 @@
import 'package:core/presentation/resources/image_paths.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:get/get.dart';
@@ -46,7 +47,7 @@ class CalendarEventActionBannerWidget extends StatelessWidget {
),
Expanded(child: Text.rich(
TextSpan(
style: TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: CalendarEventActionBannerStyles.titleTextSize,
fontWeight: FontWeight.w400,
color: calendarEvent.getColorEventActionText(listEmailAddressSender)
@@ -58,7 +59,7 @@ class CalendarEventActionBannerWidget extends StatelessWidget {
imagePaths: imagePaths,
listEmailAddressSender: listEmailAddressSender
),
style: TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: calendarEvent.getColorEventActionText(listEmailAddressSender),
fontSize: CalendarEventActionBannerStyles.titleTextSize,
fontWeight: FontWeight.w700
@@ -1,3 +1,4 @@
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:jmap_dart_client/jmap/mail/calendar/attendance/calendar_event_attendance.dart';
@@ -43,7 +44,7 @@ class CalendarEventActionButtonWidget extends StatelessWidget {
backgroundColor: _getButtonBackgroundColor(action),
borderRadius: CalendarEventActionButtonWidgetStyles.borderRadius,
padding: CalendarEventActionButtonWidgetStyles.buttonPadding,
textStyle: TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontWeight: CalendarEventActionButtonWidgetStyles.fontWeight,
fontSize: CalendarEventActionButtonWidgetStyles.textSize,
color: _getButtonTextColor(action),
@@ -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';
import 'package:jmap_dart_client/jmap/mail/calendar/calendar_event.dart';
import 'package:jmap_dart_client/jmap/mail/calendar/attendance/calendar_event_attendance.dart';
@@ -86,7 +87,7 @@ class CalendarEventInformationWidget extends StatelessWidget {
),
child: Text.rich(
TextSpan(
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: CalendarEventInformationWidgetStyles
.invitationMessageTextSize,
fontWeight: FontWeight.w500,
@@ -96,7 +97,7 @@ class CalendarEventInformationWidget extends StatelessWidget {
children: [
TextSpan(
text: calendarEvent.organizerName,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: CalendarEventInformationWidgetStyles
.invitationMessageColor,
fontSize: CalendarEventInformationWidgetStyles
@@ -159,7 +160,7 @@ class CalendarEventInformationWidget extends StatelessWidget {
AppLocalizations
.of(context)
.youAreNotInvitedToThisEventPleaseContactTheOrganizer,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: CalendarEventInformationWidgetStyles
.invitationMessageTextSize,
fontWeight: FontWeight.w500,
@@ -1,4 +1,5 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/utils/app_logger.dart';
import 'package:flutter/material.dart';
import 'package:jmap_dart_client/jmap/mail/calendar/properties/attendee/calendar_attendee.dart';
@@ -53,7 +54,7 @@ class _EventAttendeeDetailWidgetState extends State<EventAttendeeDetailWidget> {
width: EventAttendeeDetailWidgetStyles.maxWidth,
child: Text(
AppLocalizations.of(context).who,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: EventAttendeeDetailWidgetStyles.textSize,
fontWeight: FontWeight.w500,
color: EventAttendeeDetailWidgetStyles.labelColor
@@ -1,4 +1,5 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
import 'package:tmail_ui_user/features/base/widget/hyper_link_widget.dart';
import 'package:tmail_ui_user/features/email/presentation/styles/event_link_detail_widget_styles.dart';
@@ -22,7 +23,7 @@ class EventLinkDetailWidget extends StatelessWidget {
width: EventLinkDetailWidgetStyles.maxWidth,
child: Text(
AppLocalizations.of(context).link,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: EventLinkDetailWidgetStyles.textSize,
fontWeight: FontWeight.w500,
color: EventLinkDetailWidgetStyles.labelColor
@@ -1,4 +1,5 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/utils/app_logger.dart';
import 'package:flutter/material.dart';
import 'package:flutter_linkify/flutter_linkify.dart';
@@ -28,7 +29,7 @@ class EventLocationInformationWidget extends StatelessWidget {
width: EventLocationInformationWidgetStyles.maxWidth,
child: Text(
AppLocalizations.of(context).where,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: EventLocationInformationWidgetStyles.textSize,
fontWeight: FontWeight.w500,
color: EventLocationInformationWidgetStyles.labelColor
@@ -49,7 +50,7 @@ class EventLocationInformationWidget extends StatelessWidget {
EmailLinkifier(),
UrlLinkifier()
],
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: EventLocationInformationWidgetStyles.textSize,
fontWeight: FontWeight.w500,
color: EventLocationInformationWidgetStyles.valueColor
@@ -3,6 +3,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/style_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:get/get.dart';
@@ -32,7 +33,7 @@ class EventTimeInformationWidget extends StatelessWidget {
width: EventTimeInformationWidgetStyles.maxWidth,
child: Text(
AppLocalizations.of(context).when,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: EventTimeInformationWidgetStyles.textSize,
fontWeight: FontWeight.w500,
color: EventTimeInformationWidgetStyles.labelColor
@@ -44,7 +45,7 @@ class EventTimeInformationWidget extends StatelessWidget {
overflow: responsiveUtils.isPortraitMobile(context) ? null : CommonTextStyle.defaultTextOverFlow,
softWrap: responsiveUtils.isPortraitMobile(context) ? null : CommonTextStyle.defaultSoftWrap,
maxLines: responsiveUtils.isPortraitMobile(context) ? null : 1,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: EventTimeInformationWidgetStyles.textSize,
fontWeight: FontWeight.w500,
color: EventTimeInformationWidgetStyles.valueColor
@@ -1,4 +1,5 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
import 'package:tmail_ui_user/features/email/presentation/styles/event_title_widget_styles.dart';
@@ -12,7 +13,7 @@ class EventTitleWidget extends StatelessWidget {
Widget build(BuildContext context) {
return Text(
title,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontWeight: FontWeight.w500,
fontSize: EventTitleWidgetStyles.textSize,
color: EventTitleWidgetStyles.textColor
@@ -1,4 +1,5 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/cupertino.dart';
import 'package:tmail_ui_user/features/base/widget/material_text_button.dart';
import 'package:tmail_ui_user/features/email/presentation/styles/see_all_attendees_button_widget_styles.dart';
@@ -25,7 +26,7 @@ class HideAllAttendeesButtonWidget extends StatelessWidget {
horizontal: SeeAllAttendeesButtonWidgetStyles.horizontalPadding,
vertical: SeeAllAttendeesButtonWidgetStyles.verticalPadding
),
customStyle: const TextStyle(
customStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: SeeAllAttendeesButtonWidgetStyles.textSize,
color: SeeAllAttendeesButtonWidgetStyles.textColor
),
@@ -1,4 +1,5 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:jmap_dart_client/jmap/mail/calendar/properties/calendar_organizer.dart';
@@ -22,7 +23,7 @@ class OrganizerWidget extends StatelessWidget {
Widget build(BuildContext context) {
return Text.rich(
TextSpan(
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: OrganizerWidgetStyles.textSize,
fontWeight: FontWeight.w500,
color: OrganizerWidgetStyles.textColor
@@ -33,7 +34,7 @@ class OrganizerWidget extends StatelessWidget {
if (organizer.mailto?.value.isNotEmpty == true)
TextSpan(
text: ' <${organizer.mailto!.value}> ',
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: OrganizerWidgetStyles.mailtoColor,
fontSize: OrganizerWidgetStyles.textSize,
fontWeight: FontWeight.w500
@@ -1,4 +1,5 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/cupertino.dart';
import 'package:tmail_ui_user/features/base/widget/material_text_button.dart';
import 'package:tmail_ui_user/features/email/presentation/styles/see_all_attendees_button_widget_styles.dart';
@@ -25,7 +26,7 @@ class SeeAllAttendeesButtonWidget extends StatelessWidget {
horizontal: SeeAllAttendeesButtonWidgetStyles.horizontalPadding,
vertical: SeeAllAttendeesButtonWidgetStyles.verticalPadding
),
customStyle: const TextStyle(
customStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: SeeAllAttendeesButtonWidgetStyles.textSize,
color: SeeAllAttendeesButtonWidgetStyles.textColor
),
@@ -1,6 +1,7 @@
import 'package:core/presentation/action/action_callback_define.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:core/utils/platform_info.dart';
import 'package:filesize/filesize.dart';
@@ -54,7 +55,7 @@ class EmailAttachmentsWidget extends StatelessWidget {
padding: padding,
maxWidth: EmailAttachmentsStyles.buttonMoreMaxWidth,
margin: margin,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: EmailAttachmentsStyles.buttonMoreAttachmentsTextSize,
color: EmailAttachmentsStyles.buttonMoreAttachmentsTextColor,
fontWeight: EmailAttachmentsStyles.buttonMoreAttachmentsFontWeight,
@@ -152,7 +153,7 @@ class EmailAttachmentsWidget extends StatelessWidget {
backgroundColor: Colors.transparent,
borderRadius: EmailAttachmentsStyles.buttonBorderRadius,
padding: EmailAttachmentsStyles.mobileButtonPadding,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: EmailAttachmentsStyles.buttonTextSize,
color: EmailAttachmentsStyles.buttonTextColor,
fontWeight: EmailAttachmentsStyles.buttonFontWeight
@@ -1,3 +1,4 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
import 'package:tmail_ui_user/features/email/presentation/styles/email_view_empty_styles.dart';
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
@@ -12,7 +13,7 @@ class EmailViewEmptyWidget extends StatelessWidget {
child: Text(
AppLocalizations.of(context).no_mail_selected,
textAlign: TextAlign.center,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: EmailViewEmptyStyles.textSize,
color: EmailViewEmptyStyles.textColor,
fontWeight: EmailViewEmptyStyles.fontWeight
@@ -50,7 +50,7 @@ class FeedbackDraggableAttachmentItemWidget extends StatelessWidget {
child: ExtendedText(
attachment.name ?? '',
maxLines: 1,
overflowWidget: const TextOverflowWidget(
overflowWidget: TextOverflowWidget(
position: TextOverflowPosition.middle,
clearType: TextOverflowClearType.clipRect,
child: Text(
@@ -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:flutter_svg/flutter_svg.dart';
@@ -82,7 +83,7 @@ class InformationSenderAndReceiverBuilder extends StatelessWidget {
if (!emailSelected.isSubscribed && emailUnsubscribe != null && !responsiveUtils.isPortraitMobile(context))
TMailButtonWidget.fromText(
text: AppLocalizations.of(context).unsubscribe,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontWeight: FontWeight.normal,
fontSize: 14,
color: AppColor.colorTextBody,
@@ -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';
import 'package:model/email/presentation_email.dart';
import 'package:tmail_ui_user/features/email/presentation/model/email_unsubscribe.dart';
@@ -22,7 +23,7 @@ class MailUnsubscribedBanner extends StatelessWidget {
padding: const EdgeInsetsDirectional.only(bottom: 16, start: 20, end: 20),
child: Text(
AppLocalizations.of(context).mailUnsubscribedMessage(presentationEmail?.firstEmailAddressInFrom ?? ''),
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontWeight: FontWeight.normal,
fontSize: 15,
color: AppColor.labelColor
@@ -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';
import 'package:tmail_ui_user/features/email_recovery/presentation/model/email_recovery_time_type.dart';
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
@@ -69,7 +70,7 @@ enum EmailRecoveryField {
}
TextStyle getTitleTextStyle() {
return const TextStyle(
return ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 14,
fontWeight: FontWeight.w400,
color: AppColor.colorContentEmail,
@@ -89,7 +90,7 @@ enum EmailRecoveryField {
color = AppColor.colorHintSearchBar;
break;
}
return TextStyle(
return ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.w400,
color: color,
@@ -1,3 +1,4 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:dropdown_button2/dropdown_button2.dart';
import 'package:flutter/material.dart';
@@ -26,7 +27,7 @@ class DateSelectionDropdownButtonStyles {
color: Colors.white,
);
static const TextStyle selectedValueTexStyle = TextStyle(
static TextStyle selectedValueTexStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.w400,
color: Colors.black,
@@ -1,3 +1,4 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
class EmailRecoveryFormStyles {
@@ -11,7 +12,7 @@ class EmailRecoveryFormStyles {
vertical: 12,
);
static const TextStyle titleTextStyle = TextStyle(
static TextStyle titleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 20,
fontWeight: FontWeight.w700,
color: Colors.black,
@@ -1,3 +1,4 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
class AvatarSuggestionItemWidgetStyles {
@@ -5,7 +6,7 @@ class AvatarSuggestionItemWidgetStyles {
static const double height = 40.0;
static const double borderWidth = 1.0;
static const TextStyle textStyle = TextStyle(
static TextStyle textStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.black,
fontSize: 16,
fontWeight: FontWeight.w400
@@ -1,10 +1,11 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
class AvatarTagItemWidgetStyles {
static const double size = 24.0;
static const double borderWidth = 0.21;
static const TextStyle textStyle = TextStyle(
static TextStyle textStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.white,
fontSize: 8.57,
fontWeight: FontWeight.w600
@@ -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';
import 'package:tmail_ui_user/features/composer/presentation/styles/composer_style.dart';
@@ -19,12 +20,12 @@ class SuggestionItemWidgetStyles {
borderRadius: BorderRadius.all(Radius.circular(20))
);
static const TextStyle subTitleTextOriginStyle = TextStyle(
static TextStyle subTitleTextOriginStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.colorHintSearchBar,
fontSize: 13,
fontWeight: FontWeight.normal
);
static const TextStyle subTitleWordSearchedStyle = TextStyle(
static TextStyle subTitleWordSearchedStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.black,
fontSize: 13,
fontWeight: FontWeight.bold
@@ -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 SuggestionTagItemWidgetStyles {
@@ -24,7 +25,7 @@ class SuggestionTagItemWidgetStyles {
width: 1,
);
static const TextStyle labelStyle = TextStyle(
static TextStyle labelStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.black,
fontSize: 17,
fontWeight: FontWeight.w400
@@ -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 TextInputFieldWidgetStyles {
@@ -42,7 +43,7 @@ class TextInputFieldWidgetStyles {
)
);
static const TextStyle inputtedTextStyle = TextStyle(
static TextStyle inputtedTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.w400,
color: Colors.black,
@@ -1,3 +1,4 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
import 'package:tmail_ui_user/features/composer/presentation/styles/composer_style.dart';
@@ -34,7 +35,7 @@ class TextInputSuggestionFieldWidgetStyles {
borderSide: BorderSide.none,
);
static const TextStyle inputFieldTextStyle = TextStyle(
static TextStyle inputFieldTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
color: Colors.black,
fontSize: 16,
fontWeight: FontWeight.w400,
@@ -1,3 +1,4 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
class LimitsBanner extends StatelessWidget {
@@ -20,7 +21,7 @@ class LimitsBanner extends StatelessWidget {
child: Center(
child: Text(
bannerContent,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
color: Colors.black,
fontWeight: FontWeight.bold,
@@ -1,3 +1,4 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/presentation/views/button/icon_button_web.dart';
import 'package:flutter/material.dart';
import 'package:tmail_ui_user/features/email_recovery/presentation/styles/text_action_button_widget_styles.dart';
@@ -25,7 +26,7 @@ class TextActionButtonWidget extends StatelessWidget {
radius: TextActionButtonWidgetStyles.radius,
height: TextActionButtonWidgetStyles.height,
minWidth: minWidth,
textStyle: TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: TextActionButtonWidgetStyles.fontSize,
color: colorText,
fontWeight: FontWeight.w500
@@ -4,6 +4,7 @@ import 'package:core/presentation/constants/constants_ui.dart';
import 'package:core/presentation/extensions/capitalize_extension.dart';
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/style_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/presentation/views/button/icon_button_web.dart';
import 'package:core/presentation/views/responsive/responsive_widget.dart';
import 'package:core/utils/html/html_utils.dart';
@@ -105,7 +106,7 @@ class IdentityCreatorView extends GetWidget<IdentityCreatorController>
)),
const SizedBox(height: 32),
Text(AppLocalizations.of(context).signature,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontWeight: FontWeight.normal,
fontSize: 14,
color: AppColor.colorContentEmail,
@@ -430,7 +431,7 @@ class IdentityCreatorView extends GetWidget<IdentityCreatorController>
textAlign: TextAlign.center,
overflow: CommonTextStyle.defaultTextOverFlow,
softWrap: CommonTextStyle.defaultSoftWrap,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontWeight: FontWeight.bold,
fontSize: 20,
color: Colors.black
@@ -621,7 +622,7 @@ class IdentityCreatorView extends GetWidget<IdentityCreatorController>
Widget _buildCancelButton(BuildContext context, {double? width}) {
return buildTextButton(
AppLocalizations.of(context).cancel,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontWeight: FontWeight.w500,
fontSize: 17,
color: AppColor.colorTextButton,
@@ -2,6 +2,7 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/resources/image_paths.dart';
import 'package:core/presentation/utils/style_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:dropdown_button2/dropdown_button2.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -32,7 +33,7 @@ class IdentityDropListFieldBuilder extends StatelessWidget {
return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
Text(
_label,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 14,
fontWeight: FontWeight.normal,
color: AppColor.colorContentEmail)),
@@ -40,11 +41,15 @@ class IdentityDropListFieldBuilder extends StatelessWidget {
DropdownButtonHideUnderline(
child: DropdownButton2<EmailAddress>(
isExpanded: true,
hint: const Row(
hint: Row(
children: [
Expanded(child: Text(
'',
style: TextStyle(fontSize: 16, fontWeight: FontWeight.normal, color: Colors.black),
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.normal,
color: Colors.black,
),
maxLines: 1,
overflow: CommonTextStyle.defaultTextOverFlow,
softWrap: CommonTextStyle.defaultSoftWrap,
@@ -55,7 +60,7 @@ class IdentityDropListFieldBuilder extends StatelessWidget {
value: item,
child: Text(
item.emailAddress,
style: const TextStyle(fontSize: 16, fontWeight: FontWeight.normal, color: Colors.black),
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 16, fontWeight: FontWeight.normal, color: Colors.black),
maxLines: 1,
overflow: CommonTextStyle.defaultTextOverFlow,
softWrap: CommonTextStyle.defaultSoftWrap,
@@ -1,6 +1,7 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/style_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
import 'package:jmap_dart_client/jmap/mail/email/email_address.dart';
@@ -20,7 +21,7 @@ class IdentityFieldNoEditableBuilder extends StatelessWidget {
return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
Text(
_label,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 14,
fontWeight: FontWeight.normal,
color: AppColor.colorContentEmail)),
@@ -36,7 +37,7 @@ class IdentityFieldNoEditableBuilder extends StatelessWidget {
color: AppColor.colorInputBackgroundCreateMailbox),
child: Text(
_emailAddressSelected?.email ?? '',
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.normal,
color: AppColor.colorInputBorderCreateMailbox),
@@ -22,13 +22,13 @@ class IdentityInputDecorationBuilder extends InputDecorationBuilder {
prefixText: prefixText,
labelText: labelText,
floatingLabelBehavior: FloatingLabelBehavior.never,
labelStyle: labelStyle ?? const TextStyle(color: Colors.black, fontSize: 16),
labelStyle: labelStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(color: Colors.black, fontSize: 16),
hintText: hintText,
isDense: true,
hintStyle: hintStyle ?? const TextStyle(color: AppColor.colorHintInputCreateMailbox, fontSize: 16),
hintStyle: hintStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(color: AppColor.colorHintInputCreateMailbox, fontSize: 16),
contentPadding: contentPadding ?? const EdgeInsets.symmetric(horizontal: 12, vertical: 12),
errorText: errorText?.isNotEmpty == true ? errorText : null,
errorStyle: errorTextStyle ?? const TextStyle(color: AppColor.colorInputBorderErrorVerifyName, fontSize: 13),
errorStyle: errorTextStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(color: AppColor.colorInputBorderErrorVerifyName, fontSize: 13),
filled: true,
fillColor: errorText?.isNotEmpty == true
? AppColor.colorInputBackgroundErrorVerifyName
@@ -1,5 +1,6 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/presentation/views/text/text_field_builder.dart';
import 'package:core/utils/direction_utils.dart';
import 'package:core/utils/platform_info.dart';
@@ -37,7 +38,7 @@ class IdentityInputFieldBuilder extends StatelessWidget {
Text(
isMandatory
? '$_label ($requiredIndicator)'
: _label, style: const TextStyle(
: _label, style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 14,
fontWeight: FontWeight.w500,
color: AppColor.colorContentEmail)),
@@ -50,7 +51,7 @@ class IdentityInputFieldBuilder extends StatelessWidget {
textDirection: DirectionUtils.getDirectionByLanguage(context),
controller: editingController,
focusNode: focusNode,
textStyle: const TextStyle(color: Colors.black, fontSize: 16),
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(color: Colors.black, fontSize: 16),
keyboardType: inputType ?? TextInputType.text,
semanticLabel: 'Identity input field',
decoration: (IdentityInputDecorationBuilder()
@@ -1,5 +1,6 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/presentation/views/text/type_ahead_form_field_builder.dart';
import 'package:core/utils/platform_info.dart';
import 'package:flutter/material.dart';
@@ -36,7 +37,7 @@ class IdentityInputWithDropListFieldBuilder extends StatelessWidget {
return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
Text(
_label,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 14,
fontWeight: FontWeight.normal,
color: AppColor.colorContentEmail)),
@@ -67,7 +68,7 @@ class IdentityInputWithDropListFieldBuilder extends StatelessWidget {
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
child: Text(
emailAddress.email ?? '',
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 14,
fontWeight: FontWeight.normal,
color: Colors.black)));
@@ -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/semantics/checkbox_semantics.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -53,7 +54,7 @@ class SetDefaultIdentityCheckboxBuilder extends StatelessWidget {
Flexible(
child: Text(
AppLocalizations.of(context).setDefaultIdentity,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontWeight: FontWeight.normal,
fontSize: 14,
color: AppColor.colorSettingExplanation,
@@ -1,4 +1,5 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/presentation/views/text/type_ahead_form_field_builder.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
@@ -30,8 +31,11 @@ abstract class BaseLoginView extends GetWidget<LoginController> {
onPressed: () => controller.handleLoginPressed(context),
child: Text(
AppLocalizations.of(context).signIn,
style: const TextStyle(fontSize: 16, color: Colors.white)
)
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
color: Colors.white,
),
),
)
);
}
@@ -87,7 +87,7 @@ class LoginView extends BaseLoginView {
top: controller.responsiveUtils.isHeightShortest(context) ? 64 : 0),
child: Text(
AppLocalizations.of(context).login,
style: const TextStyle(fontSize: 32, color: AppColor.colorNameEmail, fontWeight: FontWeight.w900)
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 32, color: AppColor.colorNameEmail, fontWeight: FontWeight.w900)
)
),
Obx(() => LoginMessageWidget(
@@ -184,7 +184,7 @@ class LoginView extends BaseLoginView {
)
),
child: Text(AppLocalizations.of(context).next,
style: const TextStyle(fontSize: 16, color: Colors.white)
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 16, color: Colors.white)
),
onPressed: () {
if (controller.loginFormType.value == LoginFormType.retry) {
@@ -1,5 +1,6 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/state/success.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/presentation/views/responsive/responsive_widget.dart';
import 'package:core/presentation/views/text/slogan_builder.dart';
import 'package:flutter/material.dart';
@@ -48,7 +49,7 @@ class LoginView extends BaseLoginView {
padding: const EdgeInsets.only(top: 67),
child: Text(
AppLocalizations.of(context).signIn,
style: const TextStyle(fontSize: 32, color: AppColor.colorNameEmail, fontWeight: FontWeight.w900)
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 32, color: AppColor.colorNameEmail, fontWeight: FontWeight.w900)
)
),
Obx(() => LoginMessageWidget(
@@ -106,7 +107,11 @@ class LoginView extends BaseLoginView {
children: [
Text(
AppLocalizations.of(context).jmapBasedMailSolution,
style: const TextStyle(fontSize: 36, color: AppColor.colorNameEmail, fontWeight: FontWeight.w900)
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 36,
color: AppColor.colorNameEmail,
fontWeight: FontWeight.w900,
),
),
Padding(
padding: const EdgeInsets.only(top: 24),
@@ -116,7 +121,11 @@ class LoginView extends BaseLoginView {
sizeLogo: 48.0,
paddingText: const EdgeInsets.only(left: 12),
text: AppLocalizations.of(context).jmapStandard,
textStyle: const TextStyle(fontSize: 24, fontWeight: FontWeight.w400, color: AppColor.colorNameEmail)
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 24,
fontWeight: FontWeight.w400,
color: AppColor.colorNameEmail,
),
)
),
Padding(
@@ -127,7 +136,11 @@ class LoginView extends BaseLoginView {
sizeLogo: 48.0,
paddingText: const EdgeInsets.only(left: 12),
text: AppLocalizations.of(context).encryptedMailbox,
textStyle: const TextStyle(fontSize: 24, fontWeight: FontWeight.w400, color: AppColor.colorNameEmail)
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 24,
fontWeight: FontWeight.w400,
color: AppColor.colorNameEmail,
),
)
),
Padding(
@@ -138,7 +151,11 @@ class LoginView extends BaseLoginView {
sizeLogo: 48.0,
paddingText: const EdgeInsets.only(left: 12),
text: AppLocalizations.of(context).manageEmailAsATeam,
textStyle: const TextStyle(fontSize: 24, fontWeight: FontWeight.w400, color: AppColor.colorNameEmail)
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 24,
fontWeight: FontWeight.w400,
color: AppColor.colorNameEmail,
),
)
),
Padding(
@@ -149,7 +166,11 @@ class LoginView extends BaseLoginView {
sizeLogo: 48.0,
paddingText: const EdgeInsets.only(left: 12),
text: AppLocalizations.of(context).multipleIntegrations,
textStyle: const TextStyle(fontSize: 24, fontWeight: FontWeight.w400, color: AppColor.colorNameEmail)
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 24,
fontWeight: FontWeight.w400,
color: AppColor.colorNameEmail,
),
)
),
Padding(
@@ -196,7 +217,7 @@ class LoginView extends BaseLoginView {
padding: const EdgeInsets.only(top: 67),
child: Text(
AppLocalizations.of(context).signIn,
style: const TextStyle(fontSize: 32, color: AppColor.colorNameEmail, fontWeight: FontWeight.w900)
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 32, color: AppColor.colorNameEmail, fontWeight: FontWeight.w900)
)
),
Obx(() => LoginMessageWidget(
@@ -1,4 +1,5 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/widgets.dart';
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
@@ -17,7 +18,7 @@ class PrivacyLinkWidget extends StatelessWidget {
children: [
Text(
AppLocalizations.of(context).byContinuingYouAreAgreeingToOur,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.colorTextBody,
fontSize: 14,
fontWeight: FontWeight.w400,
@@ -26,7 +27,7 @@ class PrivacyLinkWidget extends StatelessWidget {
RichText(
text: TextSpan(
text: AppLocalizations.of(context).privacyPolicy,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.loginTextFieldFocusedBorder,
fontSize: 14),
recognizer: TapGestureRecognizer()..onTap = () => AppUtils.launchLink(privacyUrlString)
@@ -19,9 +19,9 @@ class LoginInputDecorationBuilder extends InputDecorationBuilder {
prefixText: prefixText,
labelText: labelText,
floatingLabelBehavior: FloatingLabelBehavior.never,
labelStyle: labelStyle ?? const TextStyle(color: AppColor.textFieldLabelColor, fontSize: 16),
labelStyle: labelStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(color: AppColor.textFieldLabelColor, fontSize: 16),
hintText: hintText,
hintStyle: hintStyle ?? const TextStyle(color: AppColor.textFieldHintColor, fontSize: 16),
hintStyle: hintStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(color: AppColor.textFieldHintColor, fontSize: 16),
contentPadding: contentPadding ?? const EdgeInsetsDirectional.only(start: 25, top: 15, bottom: 15, end: 25),
filled: true,
fillColor: AppColor.textFieldBorderColor);
@@ -3,6 +3,7 @@ import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:core/presentation/utils/responsive_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:dartz/dartz.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
@@ -83,7 +84,7 @@ class LoginMessageWidget extends StatelessWidget {
}
),
textAlign: TextAlign.center,
style: TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 15,
fontWeight: FontWeight.w400,
color: viewState.fold(
@@ -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:core/presentation/views/text/text_form_field_builder.dart';
import 'package:flutter/material.dart';
@@ -68,7 +69,7 @@ class _LoginTextInputBuilderState extends State<LoginTextInputBuilder> {
textInputAction: widget.textInputAction,
autofillHints: widget.autofillHints,
controller: _controller,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.loginTextFieldHintColor,
fontSize: 16,
fontWeight: FontWeight.normal
@@ -83,17 +84,17 @@ class _LoginTextInputBuilderState extends State<LoginTextInputBuilder> {
bottom: 15,
end: 40
))
..setHintStyle(const TextStyle(
..setHintStyle(ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.loginTextFieldHintColor,
fontSize: 16,
fontWeight: FontWeight.normal
))
..setPrefixStyle(const TextStyle(
..setPrefixStyle(ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.loginTextFieldHintColor,
fontSize: 16,
fontWeight: FontWeight.normal
))
..setErrorTextStyle(const TextStyle(
..setErrorTextStyle(ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.loginTextFieldErrorBorder,
fontSize: 13,
fontWeight: FontWeight.normal
@@ -1,5 +1,6 @@
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:core/presentation/views/button/tmail_button_widget.dart';
import 'package:flutter/material.dart';
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
@@ -18,7 +19,10 @@ class TryAgainButton extends StatelessWidget {
Widget build(BuildContext context) {
return TMailButtonWidget.fromText(
text: AppLocalizations.of(context).tryAgain,
textStyle: const TextStyle(fontSize: 16, color: Colors.white),
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
color: Colors.white,
),
backgroundColor: AppColor.primaryColor,
onTapActionCallback: onRetry,
borderRadius: 10,
@@ -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,
),
),
),
)
@@ -1,5 +1,6 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/style_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/presentation/views/text/text_field_builder.dart';
import 'package:core/utils/app_logger.dart';
import 'package:core/utils/direction_utils.dart';
@@ -104,7 +105,7 @@ class MailboxCreatorView extends GetWidget<MailboxCreatorController> {
controller: controller.nameInputController,
textDirection: DirectionUtils.getDirectionByLanguage(context),
maxLines: 1,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.colorNameEmail,
fontSize: 16,
overflow: CommonTextStyle.defaultTextOverFlow),
@@ -124,7 +125,7 @@ class MailboxCreatorView extends GetWidget<MailboxCreatorController> {
child: Text(
AppLocalizations.of(context).selectParentFolder,
textAlign: TextAlign.left,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 13,
color: AppColor.colorHintSearchBar,
fontWeight: FontWeight.normal)),
@@ -154,7 +155,7 @@ class MailboxCreatorView extends GetWidget<MailboxCreatorController> {
maxLines: 1,
softWrap: CommonTextStyle.defaultSoftWrap,
overflow: CommonTextStyle.defaultTextOverFlow,
style: TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 15,
color: controller.selectedMailbox.value == null
? AppColor.colorHintSearchBar
@@ -50,7 +50,7 @@ class AppBarMailboxCreatorBuilder {
child: TextButton(
child: Text(
AppLocalizations.of(_context).cancel,
style: const TextStyle(fontSize: 17, color: AppColor.colorTextButton),
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 17, color: AppColor.colorTextButton),
),
onPressed: () => _cancelActionClick?.call()
)
@@ -64,7 +64,7 @@ class AppBarMailboxCreatorBuilder {
child: TextButton(
child: Text(
AppLocalizations.of(_context).done,
style: TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 17,
color: isValidated
? AppColor.colorTextButton
@@ -84,7 +84,7 @@ class AppBarMailboxCreatorBuilder {
maxLines: 1,
softWrap: CommonTextStyle.defaultSoftWrap,
overflow: CommonTextStyle.defaultTextOverFlow,
style: const TextStyle(
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 20,
color: AppColor.colorNameEmail,
fontWeight: FontWeight.bold)));
@@ -22,12 +22,12 @@ class CreateMailboxNameInputDecorationBuilder extends InputDecorationBuilder {
prefixText: prefixText,
labelText: labelText,
floatingLabelBehavior: FloatingLabelBehavior.never,
labelStyle: labelStyle ?? const TextStyle(color: AppColor.colorNameEmail, fontSize: 16),
labelStyle: labelStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(color: AppColor.colorNameEmail, fontSize: 16),
hintText: hintText,
hintStyle: hintStyle ?? const TextStyle(color: AppColor.colorHintInputCreateMailbox, fontSize: 16),
hintStyle: hintStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(color: AppColor.colorHintInputCreateMailbox, fontSize: 16),
contentPadding: contentPadding ?? const EdgeInsets.all(12),
errorText: errorText,
errorStyle: errorTextStyle ?? const TextStyle(color: AppColor.colorInputBorderErrorVerifyName, fontSize: 13),
errorStyle: errorTextStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(color: AppColor.colorInputBorderErrorVerifyName, fontSize: 13),
filled: true,
fillColor: errorText?.isNotEmpty == true
? AppColor.colorInputBackgroundErrorVerifyName
@@ -424,7 +424,12 @@ class MailboxDashBoardView extends BaseMailboxDashBoardView {
label: Text(
AppLocalizations.of(context).selectAllMessagesOfThisPage,
maxLines: 1,
overflow: TextOverflow.ellipsis
overflow: TextOverflow.ellipsis,
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 13,
fontWeight: FontWeight.normal,
color: AppColor.colorFilterMessageTitle,
),
),
style: ElevatedButton.styleFrom(
backgroundColor: AppColor.colorFilterMessageButton.withOpacity(0.6),
@@ -436,7 +441,7 @@ class MailboxDashBoardView extends BaseMailboxDashBoardView {
elevation: 0.0,
foregroundColor: AppColor.colorTextButtonHeaderThread,
maximumSize: const Size.fromWidth(250),
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 13,
fontWeight: FontWeight.normal,
color: AppColor.colorFilterMessageTitle
@@ -562,7 +567,7 @@ class MailboxDashBoardView extends BaseMailboxDashBoardView {
child: TMailButtonWidget.fromText(
text: appLocalizations.hide,
backgroundColor: Colors.transparent,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.colorCancelButton,
),
onTapActionCallback: () {
@@ -642,7 +647,7 @@ class MailboxDashBoardView extends BaseMailboxDashBoardView {
backgroundColor: Colors.transparent,
margin: const EdgeInsetsDirectional.only(start: 8),
borderRadius: 10,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.primaryColor,
fontSize: 13,
fontWeight: FontWeight.w500),
@@ -653,7 +658,7 @@ class MailboxDashBoardView extends BaseMailboxDashBoardView {
backgroundColor: Colors.transparent,
margin: const EdgeInsetsDirectional.only(start: 8),
borderRadius: 10,
textStyle: const TextStyle(
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
color: AppColor.primaryColor,
fontSize: 13,
fontWeight: FontWeight.w500),
@@ -59,7 +59,7 @@ enum AdvancedSearchFilterField {
}
TextStyle getTitleTextStyle() {
return const TextStyle(
return ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 14,
fontWeight: FontWeight.w400,
color: AppColor.colorContentEmail);
@@ -77,7 +77,7 @@ enum AdvancedSearchFilterField {
}
TextStyle getHintTextStyle() {
return const TextStyle(
return ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: 16,
fontWeight: FontWeight.w400,
color: AppColor.colorHintSearchBar);
@@ -1,3 +1,4 @@
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:dartz/dartz.dart';
import 'package:flutter/material.dart';
import 'package:jmap_dart_client/jmap/core/sort/comparator.dart';
@@ -99,7 +100,7 @@ enum EmailSortOrderType {
}
TextStyle getTextStyle({required bool isInDropdown}) {
return TextStyle(
return ThemeUtils.defaultTextStyleInterFont.copyWith(
fontSize: isInDropdown ? 15 : 16,
fontWeight: FontWeight.w400,
color: Colors.black,

Some files were not shown because too many files have changed in this diff Show More