Use fontFamily for all style in Text widget
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -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/toast/tmail_toast.dart';
|
||||
import 'package:core/presentation/views/toast/toast_position.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -106,7 +107,7 @@ class AppToast {
|
||||
},
|
||||
child: Text(
|
||||
actionName,
|
||||
style: TextStyle(
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: textActionColor ?? Colors.white
|
||||
@@ -132,7 +133,7 @@ class AppToast {
|
||||
actionIcon,
|
||||
Text(
|
||||
actionName,
|
||||
style: TextStyle(
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: textActionColor ?? Colors.white
|
||||
@@ -169,7 +170,7 @@ class AppToast {
|
||||
context,
|
||||
maxWidth: maxWidth ?? responsiveUtils.getMaxWidthToast(context),
|
||||
toastPosition: ToastPosition.BOTTOM,
|
||||
textStyle: textStyle ?? TextStyle(
|
||||
textStyle: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: textColor ?? AppColor.primaryColor
|
||||
@@ -222,7 +223,7 @@ class AppToast {
|
||||
},
|
||||
child: Text(
|
||||
action.actionName!,
|
||||
style: TextStyle(
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: textActionColor ?? Colors.white
|
||||
@@ -250,7 +251,7 @@ class AppToast {
|
||||
action.actionIcon!,
|
||||
Text(
|
||||
action.actionName!,
|
||||
style: TextStyle(
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: textActionColor ?? Colors.white
|
||||
@@ -287,7 +288,7 @@ class AppToast {
|
||||
context,
|
||||
maxWidth: maxWidth ?? responsiveUtils.getMaxWidthToast(context),
|
||||
toastPosition: ToastPosition.BOTTOM,
|
||||
textStyle: textStyle ?? TextStyle(
|
||||
textStyle: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: textColor ?? AppColor.primaryColor
|
||||
|
||||
@@ -1,14 +1,6 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class CommonTextStyle {
|
||||
static const textStyleNormal = TextStyle(
|
||||
color: AppColor.primaryColor,
|
||||
fontSize: 14,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.normal,
|
||||
);
|
||||
|
||||
static const defaultTextOverFlow = TextOverflow.ellipsis;
|
||||
|
||||
static const defaultSoftWrap = true;
|
||||
|
||||
@@ -307,6 +307,10 @@ class ThemeUtils {
|
||||
color: AppColor.gray424244.withOpacity(0.9),
|
||||
);
|
||||
|
||||
static const TextStyle defaultTextStyleInterFont = TextStyle(
|
||||
fontFamily: ConstantsUI.fontApp,
|
||||
);
|
||||
|
||||
static TextSelectionThemeData get _textSelectionTheme {
|
||||
return const TextSelectionThemeData(
|
||||
cursorColor: AppColor.primaryColor,
|
||||
@@ -316,12 +320,16 @@ class ThemeUtils {
|
||||
}
|
||||
|
||||
static AppBarTheme get _appBarTheme {
|
||||
return const AppBarTheme(
|
||||
return AppBarTheme(
|
||||
color: Colors.white,
|
||||
elevation: 0,
|
||||
systemOverlayStyle: SystemUiOverlayStyle.light,
|
||||
iconTheme: IconThemeData(color: Colors.black),
|
||||
titleTextStyle: TextStyle(color: Color(0XFF8B8B8B), fontSize: 18),
|
||||
iconTheme: const IconThemeData(color: Colors.black),
|
||||
titleTextStyle: defaultTextStyleInterFont.copyWith(
|
||||
color: const Color(0XFF8B8B8B),
|
||||
fontSize: 18,
|
||||
),
|
||||
toolbarTextStyle: defaultTextStyleInterFont,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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 GradientCircleAvatarIcon extends StatelessWidget {
|
||||
@@ -36,7 +37,7 @@ class GradientCircleAvatarIcon extends StatelessWidget {
|
||||
color: AppColor.avatarColor
|
||||
),
|
||||
child: DefaultTextStyle(
|
||||
style: textStyle ?? TextStyle(
|
||||
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.white,
|
||||
fontSize: labelFontSize,
|
||||
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:flutter/widgets.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
@@ -26,7 +27,11 @@ abstract class CupertinoActionSheetActionBuilder<T> {
|
||||
}
|
||||
|
||||
TextStyle actionTextStyle({TextStyle? textStyle}) {
|
||||
return textStyle ?? const TextStyle(fontSize: 17, color: AppColor.colorNameEmail);
|
||||
return textStyle ??
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 17,
|
||||
color: AppColor.colorNameEmail,
|
||||
);
|
||||
}
|
||||
|
||||
Widget build();
|
||||
|
||||
+6
-1
@@ -1,3 +1,4 @@
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
typedef OnCupertinoActionSheetNoIconActionClick<T> = void Function(T data);
|
||||
@@ -22,7 +23,11 @@ abstract class CupertinoActionSheetNoIconBuilder<T> {
|
||||
}
|
||||
|
||||
TextStyle actionTextStyle({TextStyle? textStyle}) {
|
||||
return textStyle ?? const TextStyle(fontSize: 17, color: Colors.black);
|
||||
return textStyle ??
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 17,
|
||||
color: Colors.black,
|
||||
);
|
||||
}
|
||||
|
||||
Widget build();
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -103,7 +104,7 @@ Widget buildTextButton(String text, {
|
||||
child: Text(
|
||||
text,
|
||||
textAlign: TextAlign.center,
|
||||
style: textStyle ?? const TextStyle(
|
||||
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 17,
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.w500)),
|
||||
@@ -145,7 +146,7 @@ Widget buildButtonWrapText(String name, {
|
||||
child: Text(name,
|
||||
textAlign: TextAlign.center,
|
||||
style: textStyle ??
|
||||
const TextStyle(
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 17,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: Colors.white)),
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
import 'package:core/presentation/action/action_callback_define.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/container/tmail_container_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
@@ -211,7 +212,7 @@ class TMailButtonWidget extends StatelessWidget {
|
||||
Text(
|
||||
text,
|
||||
textAlign: textAlign,
|
||||
style: textStyle ?? const TextStyle(
|
||||
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.colorTextButtonHeaderThread
|
||||
),
|
||||
@@ -251,7 +252,7 @@ class TMailButtonWidget extends StatelessWidget {
|
||||
child: Text(
|
||||
text,
|
||||
textAlign: textAlign,
|
||||
style: textStyle ?? const TextStyle(
|
||||
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.colorTextButtonHeaderThread
|
||||
),
|
||||
@@ -264,7 +265,7 @@ class TMailButtonWidget extends StatelessWidget {
|
||||
Text(
|
||||
text,
|
||||
textAlign: textAlign,
|
||||
style: textStyle ?? const TextStyle(
|
||||
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.colorTextButtonHeaderThread
|
||||
),
|
||||
@@ -295,7 +296,7 @@ class TMailButtonWidget extends StatelessWidget {
|
||||
child: Text(
|
||||
text,
|
||||
textAlign: textAlign,
|
||||
style: textStyle ?? const TextStyle(
|
||||
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.colorTextButtonHeaderThread
|
||||
),
|
||||
@@ -308,7 +309,7 @@ class TMailButtonWidget extends StatelessWidget {
|
||||
Text(
|
||||
text,
|
||||
textAlign: textAlign,
|
||||
style: textStyle ?? const TextStyle(
|
||||
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.colorTextButtonHeaderThread
|
||||
),
|
||||
@@ -350,7 +351,7 @@ class TMailButtonWidget extends StatelessWidget {
|
||||
childWidget = Text(
|
||||
text,
|
||||
textAlign: textAlign,
|
||||
style: textStyle ?? const TextStyle(
|
||||
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.colorTextButtonHeaderThread
|
||||
),
|
||||
|
||||
@@ -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:flutter/widgets.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
@@ -21,7 +22,7 @@ abstract class ContextMenuActionBuilder<T> {
|
||||
}
|
||||
|
||||
TextStyle actionTextStyle() {
|
||||
return const TextStyle(
|
||||
return ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 15,
|
||||
color: AppColor.nameUserColor);
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ class ContextMenuHeaderBuilder {
|
||||
transform: Matrix4.translationValues(12, 5, 0.0),
|
||||
child: Text(
|
||||
_label ?? '',
|
||||
style: _textStyle ?? const TextStyle(fontSize: 20.0, color: AppColor.nameUserColor, fontWeight: FontWeight.w500),
|
||||
style: _textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 20.0, color: AppColor.nameUserColor, 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:core/presentation/views/button/icon_button_web.dart';
|
||||
import 'package:flex_color_picker/flex_color_picker.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -45,11 +46,11 @@ class ColorPickerDialogBuilder {
|
||||
title: Text(
|
||||
title ?? '',
|
||||
textAlign: TextAlign.center,
|
||||
style: const TextStyle(
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 20,
|
||||
color: Colors.black)),
|
||||
titleTextStyle: const TextStyle(
|
||||
titleTextStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 20,
|
||||
color: Colors.black),
|
||||
@@ -116,7 +117,7 @@ class ColorPickerDialogBuilder {
|
||||
textActionCancel ?? '',
|
||||
radius: 5,
|
||||
height: 30,
|
||||
textStyle: const TextStyle(
|
||||
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.normal),
|
||||
@@ -126,7 +127,7 @@ class ColorPickerDialogBuilder {
|
||||
textActionResetDefault ?? '',
|
||||
radius: 5,
|
||||
height: 30,
|
||||
textStyle: const TextStyle(
|
||||
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.normal),
|
||||
@@ -137,7 +138,7 @@ class ColorPickerDialogBuilder {
|
||||
textActionSetColor ?? '',
|
||||
radius: 5,
|
||||
height: 30,
|
||||
textStyle: const TextStyle(
|
||||
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.white,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500),
|
||||
|
||||
@@ -38,7 +38,7 @@ class DownloadingFileDialogBuilder {
|
||||
Widget build() {
|
||||
return CupertinoAlertDialog(
|
||||
key: _key ?? const Key('DownloadingFileBuilder'),
|
||||
title: Text(_title, style: const TextStyle(fontSize: 17.0, color: Colors.black)),
|
||||
title: Text(_title, style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 17.0, color: Colors.black)),
|
||||
content: Padding(
|
||||
padding: const EdgeInsets.only(top: 16.0, left: 16.0, right: 16.0),
|
||||
child: Center(
|
||||
@@ -51,7 +51,7 @@ class DownloadingFileDialogBuilder {
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
_content,
|
||||
style: const TextStyle(fontSize: 13.0, color: Colors.black),
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 13.0, color: Colors.black),
|
||||
softWrap: false,
|
||||
maxLines: 1)
|
||||
],
|
||||
@@ -63,7 +63,7 @@ class DownloadingFileDialogBuilder {
|
||||
padding: const EdgeInsets.only(bottom: kIsWeb ? 16 : 0, top: kIsWeb ? 16 : 0),
|
||||
child: TextButton(
|
||||
onPressed: () => _onCancelDownloadActionClick?.call(),
|
||||
child: Text(_actionText, style: const TextStyle(fontSize: 17.0, color: AppColor.appColor)),
|
||||
child: Text(_actionText, style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 17.0, color: AppColor.appColor)),
|
||||
))
|
||||
],
|
||||
);
|
||||
|
||||
@@ -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';
|
||||
|
||||
typedef OnTapAvatarActionClick = void Function();
|
||||
@@ -97,7 +98,7 @@ class AvatarBuilder {
|
||||
),
|
||||
child: Text(
|
||||
_text ?? '',
|
||||
style: _textStyle ?? TextStyle(fontSize: 20, color: _textColor ?? AppColor.avatarTextColor, fontWeight: FontWeight.w500)
|
||||
style: _textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 20, color: _textColor ?? AppColor.avatarTextColor, fontWeight: FontWeight.w500)
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:core/presentation/views/text/text_form_field_builder.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -123,7 +124,7 @@ class EditTextModalSheetBuilder {
|
||||
children: <Widget>[
|
||||
Text(
|
||||
_title,
|
||||
style: const TextStyle(fontSize: 20, color: AppColor.colorNameEmail, fontWeight: FontWeight.w700),
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 20, color: AppColor.colorNameEmail, fontWeight: FontWeight.w700),
|
||||
textAlign: TextAlign.center),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 20),
|
||||
@@ -143,12 +144,12 @@ class EditTextModalSheetBuilder {
|
||||
children: [
|
||||
TextButton(
|
||||
onPressed: () => _onCancelButtonPress(context),
|
||||
child: Text(_cancelText.toUpperCase(), style: const TextStyle(color: AppColor.colorTextButton)),
|
||||
child: Text(_cancelText.toUpperCase(), style: ThemeUtils.defaultTextStyleInterFont.copyWith(color: AppColor.colorTextButton)),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () => _onConfirmButtonPress(context),
|
||||
child: Text(_confirmText.toUpperCase(),
|
||||
style: TextStyle(
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: (_error == null || (_error != null && _error!.isEmpty))
|
||||
? AppColor.colorTextButton
|
||||
: AppColor.colorDisableMailboxCreateButton)),
|
||||
|
||||
@@ -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/button/tmail_button_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -54,7 +55,7 @@ class SearchBarView extends StatelessWidget {
|
||||
maxLines: 1,
|
||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||
style: const TextStyle(
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 17,
|
||||
color: AppColor.colorHintSearchBar
|
||||
)
|
||||
|
||||
@@ -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/semantics/text_field_semantics.dart';
|
||||
import 'package:core/utils/direction_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -35,7 +36,7 @@ class TextFieldBuilder extends StatefulWidget {
|
||||
this.obscureText = false,
|
||||
this.autoFocus = false,
|
||||
this.readOnly = false,
|
||||
this.textStyle = const TextStyle(color: AppColor.textFieldTextColor),
|
||||
this.textStyle,
|
||||
this.textDirection = TextDirection.ltr,
|
||||
this.textInputAction,
|
||||
this.decoration = const InputDecoration(),
|
||||
@@ -89,7 +90,9 @@ class _TextFieldBuilderState extends State<TextFieldBuilder> {
|
||||
maxLines: widget.maxLines,
|
||||
minLines: widget.minLines,
|
||||
keyboardAppearance: widget.keyboardAppearance,
|
||||
style: widget.textStyle,
|
||||
style: widget.textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: AppColor.textFieldTextColor,
|
||||
),
|
||||
obscureText: widget.obscureText,
|
||||
keyboardType: widget.keyboardType,
|
||||
autofocus: widget.autoFocus,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:core/utils/direction_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -33,7 +34,7 @@ class TextFormFieldBuilder extends StatefulWidget {
|
||||
this.obscureText = false,
|
||||
this.autoFocus = false,
|
||||
this.readOnly = false,
|
||||
this.textStyle = const TextStyle(color: AppColor.textFieldTextColor),
|
||||
this.textStyle,
|
||||
this.textDirection = TextDirection.ltr,
|
||||
this.textInputAction,
|
||||
this.decoration,
|
||||
@@ -85,7 +86,9 @@ class _TextFieldFormBuilderState extends State<TextFormFieldBuilder> {
|
||||
maxLines: widget.maxLines,
|
||||
minLines: widget.minLines,
|
||||
keyboardAppearance: widget.keyboardAppearance,
|
||||
style: widget.textStyle,
|
||||
style: widget.textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: AppColor.textFieldTextColor,
|
||||
),
|
||||
obscureText: widget.obscureText,
|
||||
keyboardType: widget.keyboardType,
|
||||
autofocus: widget.autoFocus,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:core/presentation/views/toast/toast_position.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -11,11 +12,7 @@ class TMailToast {
|
||||
Duration? toastDuration,
|
||||
ToastPosition? toastPosition,
|
||||
Color? backgroundColor,
|
||||
TextStyle textStyle = const TextStyle(
|
||||
fontSize: 15,
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.normal
|
||||
),
|
||||
TextStyle? textStyle,
|
||||
double toastBorderRadius = 10.0,
|
||||
Border? border,
|
||||
Widget? trailing,
|
||||
@@ -93,7 +90,7 @@ class ToastView {
|
||||
? Text(
|
||||
text,
|
||||
softWrap: true,
|
||||
style: textStyle ?? const TextStyle(
|
||||
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 15,
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.normal
|
||||
@@ -109,7 +106,7 @@ class ToastView {
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
child: Text(
|
||||
text,
|
||||
style: textStyle ?? const TextStyle(
|
||||
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 15,
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.normal
|
||||
@@ -126,7 +123,7 @@ class ToastView {
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
child: Text(
|
||||
text,
|
||||
style: textStyle ?? const TextStyle(
|
||||
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 15,
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.normal
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
import 'package:core/presentation/extensions/list_extensions.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:core/presentation/views/text/rich_text_builder.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
const normalTextStyle = TextStyle(
|
||||
final normalTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
);
|
||||
const highlightTextStyle = TextStyle(
|
||||
final highlightTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.red,
|
||||
fontSize: 16,
|
||||
);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
+3
-2
@@ -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
|
||||
|
||||
+10
-6
@@ -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
|
||||
|
||||
+6
-5
@@ -1,4 +1,5 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class FromComposerBottomSheetStyle {
|
||||
@@ -29,27 +30,27 @@ class FromComposerBottomSheetStyle {
|
||||
color: AppColor.colorBgSearchBar
|
||||
);
|
||||
|
||||
static const TextStyle appBarTitleTextStyle = TextStyle(
|
||||
static TextStyle appBarTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.w700,
|
||||
fontSize: 20.0,
|
||||
);
|
||||
static const TextStyle searchBarTextStyle = TextStyle(
|
||||
static TextStyle searchBarTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16.0,
|
||||
fontWeight: FontWeight.w600,
|
||||
);
|
||||
static const TextStyle searchHintTextStyle = TextStyle(
|
||||
static TextStyle searchHintTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: AppColor.loginTextFieldHintColor,
|
||||
fontSize: 16.0,
|
||||
fontWeight: FontWeight.w400,
|
||||
);
|
||||
static const TextStyle identityItemTitleTextStyle = TextStyle(
|
||||
static TextStyle identityItemTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16.0,
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
static const TextStyle identityItemSubTitleTextStyle = TextStyle(
|
||||
static TextStyle identityItemSubTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: AppColor.colorLabelQuotas
|
||||
|
||||
+4
-3
@@ -1,4 +1,5 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class FromComposerMobileWidgetStyle {
|
||||
@@ -24,18 +25,18 @@ class FromComposerMobileWidgetStyle {
|
||||
)
|
||||
);
|
||||
|
||||
static const TextStyle prefixTextStyle = TextStyle(
|
||||
static TextStyle prefixTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: AppColor.colorLabelComposer
|
||||
);
|
||||
static const TextStyle buttonTitleTextStyle = TextStyle(
|
||||
static TextStyle buttonTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColor.colorCalendarEventUnread,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
);
|
||||
static const TextStyle buttonSubTitleTextStyle = TextStyle(
|
||||
static TextStyle buttonSubTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColor.colorLabelComposer,
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class TabletBottomBarComposerWidgetStyle {
|
||||
@@ -18,7 +19,7 @@ class TabletBottomBarComposerWidgetStyle {
|
||||
static const EdgeInsetsGeometry padding = EdgeInsetsDirectional.symmetric(horizontal: 32, vertical: 12);
|
||||
static const EdgeInsetsGeometry iconPadding = EdgeInsetsDirectional.all(5);
|
||||
static const EdgeInsetsGeometry sendButtonPadding = EdgeInsetsDirectional.symmetric(vertical: 8, horizontal: 24);
|
||||
static const TextStyle sendButtonTextStyle = TextStyle(
|
||||
static TextStyle sendButtonTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 15,
|
||||
color: Colors.white,
|
||||
|
||||
@@ -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,
|
||||
|
||||
+3
-2
@@ -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
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
+6
-6
@@ -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),
|
||||
|
||||
+4
-3
@@ -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
|
||||
|
||||
+2
-2
@@ -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))
|
||||
|
||||
+10
-6
@@ -1,5 +1,6 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AttachmentItemWidgetStyle {
|
||||
@@ -16,20 +17,23 @@ class AttachmentItemWidgetStyle {
|
||||
|
||||
static const Color borderColor = AppColor.attachmentFileBorderColor;
|
||||
|
||||
static const TextStyle labelTextStyle = TextStyle(
|
||||
static TextStyle labelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 14,
|
||||
color: AppColor.attachmentFileNameColor,
|
||||
fontWeight: FontWeight.w500
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
static const TextStyle dotsLabelTextStyle = TextStyle(
|
||||
static TextStyle dotsLabelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.attachmentFileNameColor,
|
||||
fontWeight: FontWeight.w500
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
static const TextStyle sizeLabelTextStyle = TextStyle(
|
||||
static TextStyle sizeLabelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.attachmentFileSizeColor,
|
||||
fontWeight: FontWeight.normal
|
||||
fontWeight: FontWeight.normal,
|
||||
);
|
||||
|
||||
static double getMaxWidthItem({
|
||||
|
||||
+10
-6
@@ -1,5 +1,6 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AttachmentListItemWidgetStyle {
|
||||
@@ -10,19 +11,22 @@ class AttachmentListItemWidgetStyle {
|
||||
|
||||
static const EdgeInsetsGeometry contentPadding = EdgeInsetsDirectional.all(12);
|
||||
|
||||
static const TextStyle labelTextStyle = TextStyle(
|
||||
static TextStyle labelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 14,
|
||||
color: AppColor.attachmentFileNameColor,
|
||||
fontWeight: FontWeight.w500
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
static const TextStyle dotsLabelTextStyle = TextStyle(
|
||||
static TextStyle dotsLabelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.attachmentFileNameColor,
|
||||
fontWeight: FontWeight.w500
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
static const TextStyle sizeLabelTextStyle = TextStyle(
|
||||
static TextStyle sizeLabelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: AppColor.attachmentFileSizeColor,
|
||||
fontWeight: FontWeight.normal
|
||||
fontWeight: FontWeight.normal,
|
||||
);
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AttachmentListStyles {
|
||||
@@ -89,24 +90,28 @@ class AttachmentListStyles {
|
||||
static const FontWeight subTitleFontWeight = FontWeight.w400;
|
||||
static const FontWeight buttonFontWeight = FontWeight.w500;
|
||||
|
||||
static const TextStyle titleTextStyle = TextStyle(
|
||||
static TextStyle titleTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: titleFontSize,
|
||||
fontWeight: titleFontWeight,
|
||||
color: titleTextColor
|
||||
color: titleTextColor,
|
||||
);
|
||||
static const TextStyle subTitleTextStyle = TextStyle(
|
||||
static TextStyle subTitleTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: subTitleFontSize,
|
||||
fontWeight: subTitleFontWeight,
|
||||
color: subTitleTextColor
|
||||
color: subTitleTextColor,
|
||||
);
|
||||
static const TextStyle downloadAllButtonTextStyle = TextStyle(
|
||||
static TextStyle downloadAllButtonTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: titleFontSize,
|
||||
fontWeight: buttonFontWeight,
|
||||
color: downloadAllButtonTextColor
|
||||
color: downloadAllButtonTextColor,
|
||||
);
|
||||
static const TextStyle cancelButtonTextStyle = TextStyle(
|
||||
static TextStyle cancelButtonTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: titleFontSize,
|
||||
fontWeight: buttonFontWeight,
|
||||
color: cancelButtonTextColor
|
||||
color: cancelButtonTextColor,
|
||||
);
|
||||
}
|
||||
+7
-4
@@ -1,5 +1,6 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class FeedbackDraggableAttachmentItemWidgetStyle {
|
||||
@@ -12,15 +13,17 @@ class FeedbackDraggableAttachmentItemWidgetStyle {
|
||||
|
||||
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(horizontal: 16, vertical: 12);
|
||||
|
||||
static const TextStyle labelTextStyle = TextStyle(
|
||||
static TextStyle labelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
static const TextStyle dotsLabelTextStyle = TextStyle(
|
||||
static TextStyle dotsLabelTextStyle =
|
||||
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 12,
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.w500
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
|
||||
static const List<BoxShadow> shadows = [
|
||||
|
||||
@@ -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(
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+4
-3
@@ -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
|
||||
|
||||
+3
-2
@@ -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
|
||||
|
||||
+2
-1
@@ -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),
|
||||
|
||||
+4
-3
@@ -1,4 +1,5 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
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,
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
+3
-2
@@ -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
-2
@@ -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
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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(
|
||||
|
||||
+2
-1
@@ -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,
|
||||
|
||||
+2
-1
@@ -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,
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
+3
-2
@@ -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
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
+2
-1
@@ -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,
|
||||
|
||||
+2
-1
@@ -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,
|
||||
|
||||
+9
-4
@@ -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,
|
||||
|
||||
+3
-2
@@ -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),
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+3
-2
@@ -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()
|
||||
|
||||
+3
-2
@@ -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)));
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user