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/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/resources/image_paths.dart';
|
import 'package:core/presentation/resources/image_paths.dart';
|
||||||
import 'package:core/presentation/utils/responsive_utils.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/tmail_toast.dart';
|
||||||
import 'package:core/presentation/views/toast/toast_position.dart';
|
import 'package:core/presentation/views/toast/toast_position.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -106,7 +107,7 @@ class AppToast {
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
actionName,
|
actionName,
|
||||||
style: TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: textActionColor ?? Colors.white
|
color: textActionColor ?? Colors.white
|
||||||
@@ -132,7 +133,7 @@ class AppToast {
|
|||||||
actionIcon,
|
actionIcon,
|
||||||
Text(
|
Text(
|
||||||
actionName,
|
actionName,
|
||||||
style: TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: textActionColor ?? Colors.white
|
color: textActionColor ?? Colors.white
|
||||||
@@ -169,7 +170,7 @@ class AppToast {
|
|||||||
context,
|
context,
|
||||||
maxWidth: maxWidth ?? responsiveUtils.getMaxWidthToast(context),
|
maxWidth: maxWidth ?? responsiveUtils.getMaxWidthToast(context),
|
||||||
toastPosition: ToastPosition.BOTTOM,
|
toastPosition: ToastPosition.BOTTOM,
|
||||||
textStyle: textStyle ?? TextStyle(
|
textStyle: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: textColor ?? AppColor.primaryColor
|
color: textColor ?? AppColor.primaryColor
|
||||||
@@ -222,7 +223,7 @@ class AppToast {
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
action.actionName!,
|
action.actionName!,
|
||||||
style: TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: textActionColor ?? Colors.white
|
color: textActionColor ?? Colors.white
|
||||||
@@ -250,7 +251,7 @@ class AppToast {
|
|||||||
action.actionIcon!,
|
action.actionIcon!,
|
||||||
Text(
|
Text(
|
||||||
action.actionName!,
|
action.actionName!,
|
||||||
style: TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: textActionColor ?? Colors.white
|
color: textActionColor ?? Colors.white
|
||||||
@@ -287,7 +288,7 @@ class AppToast {
|
|||||||
context,
|
context,
|
||||||
maxWidth: maxWidth ?? responsiveUtils.getMaxWidthToast(context),
|
maxWidth: maxWidth ?? responsiveUtils.getMaxWidthToast(context),
|
||||||
toastPosition: ToastPosition.BOTTOM,
|
toastPosition: ToastPosition.BOTTOM,
|
||||||
textStyle: textStyle ?? TextStyle(
|
textStyle: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: textColor ?? AppColor.primaryColor
|
color: textColor ?? AppColor.primaryColor
|
||||||
|
|||||||
@@ -1,14 +1,6 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class CommonTextStyle {
|
class CommonTextStyle {
|
||||||
static const textStyleNormal = TextStyle(
|
|
||||||
color: AppColor.primaryColor,
|
|
||||||
fontSize: 14,
|
|
||||||
fontStyle: FontStyle.normal,
|
|
||||||
fontWeight: FontWeight.normal,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const defaultTextOverFlow = TextOverflow.ellipsis;
|
static const defaultTextOverFlow = TextOverflow.ellipsis;
|
||||||
|
|
||||||
static const defaultSoftWrap = true;
|
static const defaultSoftWrap = true;
|
||||||
|
|||||||
@@ -307,6 +307,10 @@ class ThemeUtils {
|
|||||||
color: AppColor.gray424244.withOpacity(0.9),
|
color: AppColor.gray424244.withOpacity(0.9),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
static const TextStyle defaultTextStyleInterFont = TextStyle(
|
||||||
|
fontFamily: ConstantsUI.fontApp,
|
||||||
|
);
|
||||||
|
|
||||||
static TextSelectionThemeData get _textSelectionTheme {
|
static TextSelectionThemeData get _textSelectionTheme {
|
||||||
return const TextSelectionThemeData(
|
return const TextSelectionThemeData(
|
||||||
cursorColor: AppColor.primaryColor,
|
cursorColor: AppColor.primaryColor,
|
||||||
@@ -316,12 +320,16 @@ class ThemeUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static AppBarTheme get _appBarTheme {
|
static AppBarTheme get _appBarTheme {
|
||||||
return const AppBarTheme(
|
return AppBarTheme(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
systemOverlayStyle: SystemUiOverlayStyle.light,
|
systemOverlayStyle: SystemUiOverlayStyle.light,
|
||||||
iconTheme: IconThemeData(color: Colors.black),
|
iconTheme: const IconThemeData(color: Colors.black),
|
||||||
titleTextStyle: TextStyle(color: Color(0XFF8B8B8B), fontSize: 18),
|
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/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class GradientCircleAvatarIcon extends StatelessWidget {
|
class GradientCircleAvatarIcon extends StatelessWidget {
|
||||||
@@ -36,7 +37,7 @@ class GradientCircleAvatarIcon extends StatelessWidget {
|
|||||||
color: AppColor.avatarColor
|
color: AppColor.avatarColor
|
||||||
),
|
),
|
||||||
child: DefaultTextStyle(
|
child: DefaultTextStyle(
|
||||||
style: textStyle ?? TextStyle(
|
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: labelFontSize,
|
fontSize: labelFontSize,
|
||||||
fontWeight: FontWeight.w600
|
fontWeight: FontWeight.w600
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/widgets.dart';
|
import 'package:flutter/widgets.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
@@ -26,7 +27,11 @@ abstract class CupertinoActionSheetActionBuilder<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TextStyle actionTextStyle({TextStyle? textStyle}) {
|
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();
|
Widget build();
|
||||||
|
|||||||
+6
-1
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
typedef OnCupertinoActionSheetNoIconActionClick<T> = void Function(T data);
|
typedef OnCupertinoActionSheetNoIconActionClick<T> = void Function(T data);
|
||||||
@@ -22,7 +23,11 @@ abstract class CupertinoActionSheetNoIconBuilder<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TextStyle actionTextStyle({TextStyle? textStyle}) {
|
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();
|
Widget build();
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
|
|
||||||
@@ -103,7 +104,7 @@ Widget buildTextButton(String text, {
|
|||||||
child: Text(
|
child: Text(
|
||||||
text,
|
text,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: textStyle ?? const TextStyle(
|
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontWeight: FontWeight.w500)),
|
fontWeight: FontWeight.w500)),
|
||||||
@@ -145,7 +146,7 @@ Widget buildButtonWrapText(String name, {
|
|||||||
child: Text(name,
|
child: Text(name,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: textStyle ??
|
style: textStyle ??
|
||||||
const TextStyle(
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: Colors.white)),
|
color: Colors.white)),
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import 'package:core/presentation/action/action_callback_define.dart';
|
import 'package:core/presentation/action/action_callback_define.dart';
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/utils/style_utils.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:core/presentation/views/container/tmail_container_widget.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
@@ -211,7 +212,7 @@ class TMailButtonWidget extends StatelessWidget {
|
|||||||
Text(
|
Text(
|
||||||
text,
|
text,
|
||||||
textAlign: textAlign,
|
textAlign: textAlign,
|
||||||
style: textStyle ?? const TextStyle(
|
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: AppColor.colorTextButtonHeaderThread
|
color: AppColor.colorTextButtonHeaderThread
|
||||||
),
|
),
|
||||||
@@ -251,7 +252,7 @@ class TMailButtonWidget extends StatelessWidget {
|
|||||||
child: Text(
|
child: Text(
|
||||||
text,
|
text,
|
||||||
textAlign: textAlign,
|
textAlign: textAlign,
|
||||||
style: textStyle ?? const TextStyle(
|
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: AppColor.colorTextButtonHeaderThread
|
color: AppColor.colorTextButtonHeaderThread
|
||||||
),
|
),
|
||||||
@@ -264,7 +265,7 @@ class TMailButtonWidget extends StatelessWidget {
|
|||||||
Text(
|
Text(
|
||||||
text,
|
text,
|
||||||
textAlign: textAlign,
|
textAlign: textAlign,
|
||||||
style: textStyle ?? const TextStyle(
|
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: AppColor.colorTextButtonHeaderThread
|
color: AppColor.colorTextButtonHeaderThread
|
||||||
),
|
),
|
||||||
@@ -295,7 +296,7 @@ class TMailButtonWidget extends StatelessWidget {
|
|||||||
child: Text(
|
child: Text(
|
||||||
text,
|
text,
|
||||||
textAlign: textAlign,
|
textAlign: textAlign,
|
||||||
style: textStyle ?? const TextStyle(
|
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: AppColor.colorTextButtonHeaderThread
|
color: AppColor.colorTextButtonHeaderThread
|
||||||
),
|
),
|
||||||
@@ -308,7 +309,7 @@ class TMailButtonWidget extends StatelessWidget {
|
|||||||
Text(
|
Text(
|
||||||
text,
|
text,
|
||||||
textAlign: textAlign,
|
textAlign: textAlign,
|
||||||
style: textStyle ?? const TextStyle(
|
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: AppColor.colorTextButtonHeaderThread
|
color: AppColor.colorTextButtonHeaderThread
|
||||||
),
|
),
|
||||||
@@ -350,7 +351,7 @@ class TMailButtonWidget extends StatelessWidget {
|
|||||||
childWidget = Text(
|
childWidget = Text(
|
||||||
text,
|
text,
|
||||||
textAlign: textAlign,
|
textAlign: textAlign,
|
||||||
style: textStyle ?? const TextStyle(
|
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: AppColor.colorTextButtonHeaderThread
|
color: AppColor.colorTextButtonHeaderThread
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/widgets.dart';
|
import 'package:flutter/widgets.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
@@ -21,7 +22,7 @@ abstract class ContextMenuActionBuilder<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TextStyle actionTextStyle() {
|
TextStyle actionTextStyle() {
|
||||||
return const TextStyle(
|
return ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
color: AppColor.nameUserColor);
|
color: AppColor.nameUserColor);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class ContextMenuHeaderBuilder {
|
|||||||
transform: Matrix4.translationValues(12, 5, 0.0),
|
transform: Matrix4.translationValues(12, 5, 0.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
_label ?? '',
|
_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/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:core/presentation/views/button/icon_button_web.dart';
|
import 'package:core/presentation/views/button/icon_button_web.dart';
|
||||||
import 'package:flex_color_picker/flex_color_picker.dart';
|
import 'package:flex_color_picker/flex_color_picker.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -45,11 +46,11 @@ class ColorPickerDialogBuilder {
|
|||||||
title: Text(
|
title: Text(
|
||||||
title ?? '',
|
title ?? '',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
color: Colors.black)),
|
color: Colors.black)),
|
||||||
titleTextStyle: const TextStyle(
|
titleTextStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
color: Colors.black),
|
color: Colors.black),
|
||||||
@@ -116,7 +117,7 @@ class ColorPickerDialogBuilder {
|
|||||||
textActionCancel ?? '',
|
textActionCancel ?? '',
|
||||||
radius: 5,
|
radius: 5,
|
||||||
height: 30,
|
height: 30,
|
||||||
textStyle: const TextStyle(
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.normal),
|
fontWeight: FontWeight.normal),
|
||||||
@@ -126,7 +127,7 @@ class ColorPickerDialogBuilder {
|
|||||||
textActionResetDefault ?? '',
|
textActionResetDefault ?? '',
|
||||||
radius: 5,
|
radius: 5,
|
||||||
height: 30,
|
height: 30,
|
||||||
textStyle: const TextStyle(
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.normal),
|
fontWeight: FontWeight.normal),
|
||||||
@@ -137,7 +138,7 @@ class ColorPickerDialogBuilder {
|
|||||||
textActionSetColor ?? '',
|
textActionSetColor ?? '',
|
||||||
radius: 5,
|
radius: 5,
|
||||||
height: 30,
|
height: 30,
|
||||||
textStyle: const TextStyle(
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w500),
|
fontWeight: FontWeight.w500),
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class DownloadingFileDialogBuilder {
|
|||||||
Widget build() {
|
Widget build() {
|
||||||
return CupertinoAlertDialog(
|
return CupertinoAlertDialog(
|
||||||
key: _key ?? const Key('DownloadingFileBuilder'),
|
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(
|
content: Padding(
|
||||||
padding: const EdgeInsets.only(top: 16.0, left: 16.0, right: 16.0),
|
padding: const EdgeInsets.only(top: 16.0, left: 16.0, right: 16.0),
|
||||||
child: Center(
|
child: Center(
|
||||||
@@ -51,7 +51,7 @@ class DownloadingFileDialogBuilder {
|
|||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
Text(
|
Text(
|
||||||
_content,
|
_content,
|
||||||
style: const TextStyle(fontSize: 13.0, color: Colors.black),
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 13.0, color: Colors.black),
|
||||||
softWrap: false,
|
softWrap: false,
|
||||||
maxLines: 1)
|
maxLines: 1)
|
||||||
],
|
],
|
||||||
@@ -63,7 +63,7 @@ class DownloadingFileDialogBuilder {
|
|||||||
padding: const EdgeInsets.only(bottom: kIsWeb ? 16 : 0, top: kIsWeb ? 16 : 0),
|
padding: const EdgeInsets.only(bottom: kIsWeb ? 16 : 0, top: kIsWeb ? 16 : 0),
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () => _onCancelDownloadActionClick?.call(),
|
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/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
typedef OnTapAvatarActionClick = void Function();
|
typedef OnTapAvatarActionClick = void Function();
|
||||||
@@ -97,7 +98,7 @@ class AvatarBuilder {
|
|||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
_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 'dart:async';
|
||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
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:core/presentation/views/text/text_form_field_builder.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
@@ -123,7 +124,7 @@ class EditTextModalSheetBuilder {
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text(
|
Text(
|
||||||
_title,
|
_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),
|
textAlign: TextAlign.center),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(top: 20),
|
padding: const EdgeInsets.only(top: 20),
|
||||||
@@ -143,12 +144,12 @@ class EditTextModalSheetBuilder {
|
|||||||
children: [
|
children: [
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () => _onCancelButtonPress(context),
|
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(
|
TextButton(
|
||||||
onPressed: () => _onConfirmButtonPress(context),
|
onPressed: () => _onConfirmButtonPress(context),
|
||||||
child: Text(_confirmText.toUpperCase(),
|
child: Text(_confirmText.toUpperCase(),
|
||||||
style: TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: (_error == null || (_error != null && _error!.isEmpty))
|
color: (_error == null || (_error != null && _error!.isEmpty))
|
||||||
? AppColor.colorTextButton
|
? AppColor.colorTextButton
|
||||||
: AppColor.colorDisableMailboxCreateButton)),
|
: AppColor.colorDisableMailboxCreateButton)),
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/resources/image_paths.dart';
|
import 'package:core/presentation/resources/image_paths.dart';
|
||||||
import 'package:core/presentation/utils/style_utils.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:core/presentation/views/button/tmail_button_widget.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
@@ -54,7 +55,7 @@ class SearchBarView extends StatelessWidget {
|
|||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
color: AppColor.colorHintSearchBar
|
color: AppColor.colorHintSearchBar
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
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/presentation/views/semantics/text_field_semantics.dart';
|
||||||
import 'package:core/utils/direction_utils.dart';
|
import 'package:core/utils/direction_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -35,7 +36,7 @@ class TextFieldBuilder extends StatefulWidget {
|
|||||||
this.obscureText = false,
|
this.obscureText = false,
|
||||||
this.autoFocus = false,
|
this.autoFocus = false,
|
||||||
this.readOnly = false,
|
this.readOnly = false,
|
||||||
this.textStyle = const TextStyle(color: AppColor.textFieldTextColor),
|
this.textStyle,
|
||||||
this.textDirection = TextDirection.ltr,
|
this.textDirection = TextDirection.ltr,
|
||||||
this.textInputAction,
|
this.textInputAction,
|
||||||
this.decoration = const InputDecoration(),
|
this.decoration = const InputDecoration(),
|
||||||
@@ -89,7 +90,9 @@ class _TextFieldBuilderState extends State<TextFieldBuilder> {
|
|||||||
maxLines: widget.maxLines,
|
maxLines: widget.maxLines,
|
||||||
minLines: widget.minLines,
|
minLines: widget.minLines,
|
||||||
keyboardAppearance: widget.keyboardAppearance,
|
keyboardAppearance: widget.keyboardAppearance,
|
||||||
style: widget.textStyle,
|
style: widget.textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
|
color: AppColor.textFieldTextColor,
|
||||||
|
),
|
||||||
obscureText: widget.obscureText,
|
obscureText: widget.obscureText,
|
||||||
keyboardType: widget.keyboardType,
|
keyboardType: widget.keyboardType,
|
||||||
autofocus: widget.autoFocus,
|
autofocus: widget.autoFocus,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
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:core/utils/direction_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
@@ -33,7 +34,7 @@ class TextFormFieldBuilder extends StatefulWidget {
|
|||||||
this.obscureText = false,
|
this.obscureText = false,
|
||||||
this.autoFocus = false,
|
this.autoFocus = false,
|
||||||
this.readOnly = false,
|
this.readOnly = false,
|
||||||
this.textStyle = const TextStyle(color: AppColor.textFieldTextColor),
|
this.textStyle,
|
||||||
this.textDirection = TextDirection.ltr,
|
this.textDirection = TextDirection.ltr,
|
||||||
this.textInputAction,
|
this.textInputAction,
|
||||||
this.decoration,
|
this.decoration,
|
||||||
@@ -85,7 +86,9 @@ class _TextFieldFormBuilderState extends State<TextFormFieldBuilder> {
|
|||||||
maxLines: widget.maxLines,
|
maxLines: widget.maxLines,
|
||||||
minLines: widget.minLines,
|
minLines: widget.minLines,
|
||||||
keyboardAppearance: widget.keyboardAppearance,
|
keyboardAppearance: widget.keyboardAppearance,
|
||||||
style: widget.textStyle,
|
style: widget.textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
|
color: AppColor.textFieldTextColor,
|
||||||
|
),
|
||||||
obscureText: widget.obscureText,
|
obscureText: widget.obscureText,
|
||||||
keyboardType: widget.keyboardType,
|
keyboardType: widget.keyboardType,
|
||||||
autofocus: widget.autoFocus,
|
autofocus: widget.autoFocus,
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
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:core/presentation/views/toast/toast_position.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
@@ -11,11 +12,7 @@ class TMailToast {
|
|||||||
Duration? toastDuration,
|
Duration? toastDuration,
|
||||||
ToastPosition? toastPosition,
|
ToastPosition? toastPosition,
|
||||||
Color? backgroundColor,
|
Color? backgroundColor,
|
||||||
TextStyle textStyle = const TextStyle(
|
TextStyle? textStyle,
|
||||||
fontSize: 15,
|
|
||||||
color: Colors.white,
|
|
||||||
fontWeight: FontWeight.normal
|
|
||||||
),
|
|
||||||
double toastBorderRadius = 10.0,
|
double toastBorderRadius = 10.0,
|
||||||
Border? border,
|
Border? border,
|
||||||
Widget? trailing,
|
Widget? trailing,
|
||||||
@@ -93,7 +90,7 @@ class ToastView {
|
|||||||
? Text(
|
? Text(
|
||||||
text,
|
text,
|
||||||
softWrap: true,
|
softWrap: true,
|
||||||
style: textStyle ?? const TextStyle(
|
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontWeight: FontWeight.normal
|
fontWeight: FontWeight.normal
|
||||||
@@ -109,7 +106,7 @@ class ToastView {
|
|||||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||||
child: Text(
|
child: Text(
|
||||||
text,
|
text,
|
||||||
style: textStyle ?? const TextStyle(
|
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontWeight: FontWeight.normal
|
fontWeight: FontWeight.normal
|
||||||
@@ -126,7 +123,7 @@ class ToastView {
|
|||||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||||
child: Text(
|
child: Text(
|
||||||
text,
|
text,
|
||||||
style: textStyle ?? const TextStyle(
|
style: textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontWeight: FontWeight.normal
|
fontWeight: FontWeight.normal
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
import 'package:core/presentation/extensions/list_extensions.dart';
|
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:core/presentation/views/text/rich_text_builder.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
const normalTextStyle = TextStyle(
|
final normalTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
);
|
);
|
||||||
const highlightTextStyle = TextStyle(
|
final highlightTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.red,
|
color: Colors.red,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
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/presentation/views/bottom_popup/cupertino_action_sheet_builder.dart';
|
||||||
import 'package:core/utils/platform_info.dart';
|
import 'package:core/utils/platform_info.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
@@ -81,8 +82,13 @@ mixin PopupContextMenuActionMixin {
|
|||||||
cursor: PlatformInfo.isWeb ? WidgetStateMouseCursor.clickable : MouseCursor.defer,
|
cursor: PlatformInfo.isWeb ? WidgetStateMouseCursor.clickable : MouseCursor.defer,
|
||||||
child: CupertinoActionSheetAction(
|
child: CupertinoActionSheetAction(
|
||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(context).cancel,
|
AppLocalizations.of(context).cancel,
|
||||||
style: const TextStyle(fontWeight: FontWeight.w500, fontSize: 20, color: AppColor.colorTextButton)),
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
fontSize: 20,
|
||||||
|
color: AppColor.colorTextButton,
|
||||||
|
),
|
||||||
|
),
|
||||||
onPressed: () => popBack(),
|
onPressed: () => popBack(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ mixin PopupMenuWidgetMixin {
|
|||||||
const SizedBox(width: 12),
|
const SizedBox(width: 12),
|
||||||
Expanded(child: Text(
|
Expanded(child: Text(
|
||||||
nameAction,
|
nameAction,
|
||||||
style: styleName ?? const TextStyle(
|
style: styleName ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: Colors.black)
|
color: Colors.black)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/utils/style_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/material.dart';
|
||||||
import 'package:tmail_ui_user/features/manage_account/presentation/extensions/datetime_extension.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) {
|
if (label != null) {
|
||||||
return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
||||||
Text(label!, style: const TextStyle(
|
Text(label!, style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: AppColor.colorContentEmail)),
|
color: AppColor.colorContentEmail)),
|
||||||
@@ -73,12 +74,12 @@ class BorderButtonField<T> extends StatelessWidget {
|
|||||||
|
|
||||||
TextStyle? _getTextStyle(T? value) {
|
TextStyle? _getTextStyle(T? value) {
|
||||||
if (hintText != null && value == null) {
|
if (hintText != null && value == null) {
|
||||||
return const TextStyle(
|
return ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: AppColor.colorHintInputCreateMailbox);
|
color: AppColor.colorHintInputCreateMailbox);
|
||||||
}
|
}
|
||||||
return textStyle ?? const TextStyle(
|
return textStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: Colors.black);
|
color: Colors.black);
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/resources/image_paths.dart';
|
import 'package:core/presentation/resources/image_paths.dart';
|
||||||
import 'package:core/presentation/utils/style_utils.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:core/presentation/views/floating_button/scrolling_floating_button_animated.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
@@ -37,7 +38,7 @@ class ComposeFloatingButton extends StatelessWidget {
|
|||||||
child: Text(AppLocalizations.of(context).compose,
|
child: Text(AppLocalizations.of(context).compose,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 16.0,
|
fontSize: 16.0,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/resources/image_paths.dart';
|
import 'package:core/presentation/resources/image_paths.dart';
|
||||||
import 'package:core/presentation/utils/style_utils.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:dropdown_button2/dropdown_button2.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
@@ -67,7 +68,7 @@ class DropDownButtonWidget<T> extends StatelessWidget {
|
|||||||
? Row(children: [
|
? Row(children: [
|
||||||
Expanded(child: Text(
|
Expanded(child: Text(
|
||||||
_getTextItemDropdown(context, item: itemSelected),
|
_getTextItemDropdown(context, item: itemSelected),
|
||||||
style: TextStyle(fontSize: 16,
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 16,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: Colors.black.withOpacity(opacity)),
|
color: Colors.black.withOpacity(opacity)),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
@@ -85,7 +86,7 @@ class DropDownButtonWidget<T> extends StatelessWidget {
|
|||||||
height: heightItem,
|
height: heightItem,
|
||||||
child: Row(children: [
|
child: Row(children: [
|
||||||
Expanded(child: Text(_getTextItemDropdown(context, item: item),
|
Expanded(child: Text(_getTextItemDropdown(context, item: item),
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: Colors.black),
|
color: Colors.black),
|
||||||
@@ -121,7 +122,7 @@ class DropDownButtonWidget<T> extends StatelessWidget {
|
|||||||
child: Row(children: [
|
child: Row(children: [
|
||||||
Expanded(child: Text(
|
Expanded(child: Text(
|
||||||
_getTextItemDropdown(context, item: itemSelected),
|
_getTextItemDropdown(context, item: itemSelected),
|
||||||
style: TextStyle(fontSize: 16,
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 16,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: itemSelected != null ? Colors.black.withOpacity(opacity) : AppColor.textFieldHintColor),
|
color: itemSelected != null ? Colors.black.withOpacity(opacity) : AppColor.textFieldHintColor),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/gestures.dart';
|
import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/widgets.dart';
|
import 'package:flutter/widgets.dart';
|
||||||
import 'package:tmail_ui_user/features/base/styles/hyper_link_widget_styles.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(
|
return Text.rich(
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: urlString,
|
text: urlString,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: HyperLinkWidgetStyles.textColor,
|
color: HyperLinkWidgetStyles.textColor,
|
||||||
fontSize: HyperLinkWidgetStyles.textSize,
|
fontSize: HyperLinkWidgetStyles.textSize,
|
||||||
decoration: TextDecoration.underline
|
decoration: TextDecoration.underline
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
typedef OnTapMaterialTextButton = Function();
|
typedef OnTapMaterialTextButton = Function();
|
||||||
@@ -48,7 +49,7 @@ class MaterialTextButton extends StatelessWidget {
|
|||||||
label,
|
label,
|
||||||
overflow: overflow,
|
overflow: overflow,
|
||||||
softWrap: softWrap,
|
softWrap: softWrap,
|
||||||
style: customStyle ?? TextStyle(
|
style: customStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: labelSize,
|
fontSize: labelSize,
|
||||||
color: labelColor ?? AppColor.colorTextButton,
|
color: labelColor ?? AppColor.colorTextButton,
|
||||||
fontWeight: labelWeight ?? FontWeight.normal
|
fontWeight: labelWeight ?? FontWeight.normal
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
|
|
||||||
@@ -47,7 +48,7 @@ class MaterialTextIconButton extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
label: Text(
|
label: Text(
|
||||||
label,
|
label,
|
||||||
style: labelStyle ?? TextStyle(
|
style: labelStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
color: labelColor ?? AppColor.colorTextButton,
|
color: labelColor ?? AppColor.colorTextButton,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
import 'package:pointer_interceptor/pointer_interceptor.dart';
|
import 'package:pointer_interceptor/pointer_interceptor.dart';
|
||||||
@@ -38,7 +39,7 @@ class PopupItemNoIconWidget extends StatelessWidget {
|
|||||||
child: Row(children: [
|
child: Row(children: [
|
||||||
Expanded(child: Text(
|
Expanded(child: Text(
|
||||||
_nameAction,
|
_nameAction,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontWeight: FontWeight.normal
|
fontWeight: FontWeight.normal
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/resources/image_paths.dart';
|
import 'package:core/presentation/resources/image_paths.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
@@ -31,7 +32,7 @@ class RecentItemTileWidget<T> extends StatelessWidget {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
_getTitle(item),
|
_getTitle(item),
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: Colors.black
|
color: Colors.black
|
||||||
|
|||||||
@@ -30,19 +30,19 @@ class TextInputDecorationBuilder extends InputDecorationBuilder {
|
|||||||
prefixText: prefixText,
|
prefixText: prefixText,
|
||||||
labelText: labelText,
|
labelText: labelText,
|
||||||
floatingLabelBehavior: FloatingLabelBehavior.never,
|
floatingLabelBehavior: FloatingLabelBehavior.never,
|
||||||
labelStyle: labelStyle ?? const TextStyle(
|
labelStyle: labelStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 16),
|
fontSize: 16),
|
||||||
hintText: hintText,
|
hintText: hintText,
|
||||||
isDense: true,
|
isDense: true,
|
||||||
hintStyle: hintStyle ?? const TextStyle(
|
hintStyle: hintStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: AppColor.loginTextFieldHintColor,
|
color: AppColor.loginTextFieldHintColor,
|
||||||
fontSize: 16),
|
fontSize: 16),
|
||||||
contentPadding: contentPadding ?? const EdgeInsets.symmetric(
|
contentPadding: contentPadding ?? const EdgeInsets.symmetric(
|
||||||
horizontal: 12,
|
horizontal: 12,
|
||||||
vertical: 12),
|
vertical: 12),
|
||||||
errorText: errorText,
|
errorText: errorText,
|
||||||
errorStyle: errorTextStyle ?? const TextStyle(
|
errorStyle: errorTextStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: AppColor.colorInputBorderErrorVerifyName,
|
color: AppColor.colorInputBorderErrorVerifyName,
|
||||||
fontSize: 13),
|
fontSize: 13),
|
||||||
filled: true,
|
filled: true,
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class TextInputFieldBuilder extends StatelessWidget {
|
|||||||
if (label != null)
|
if (label != null)
|
||||||
...[
|
...[
|
||||||
Text(isMandatory ? '${label!}*' : label!,
|
Text(isMandatory ? '${label!}*' : label!,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: AppColor.colorContentEmail)),
|
color: AppColor.colorContentEmail)),
|
||||||
@@ -52,7 +52,7 @@ class TextInputFieldBuilder extends StatelessWidget {
|
|||||||
textInputAction: TextInputAction.next,
|
textInputAction: TextInputAction.next,
|
||||||
controller: editingController,
|
controller: editingController,
|
||||||
focusNode: focusNode,
|
focusNode: focusNode,
|
||||||
textStyle: const TextStyle(color: Colors.black, fontSize: 16),
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(color: Colors.black, fontSize: 16),
|
||||||
keyboardType: inputType ?? TextInputType.text,
|
keyboardType: inputType ?? TextInputType.text,
|
||||||
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
||||||
minLines: minLines,
|
minLines: minLines,
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ class UserAvatarBuilder extends StatelessWidget {
|
|||||||
final double? size;
|
final double? size;
|
||||||
final TextStyle? textStyle;
|
final TextStyle? textStyle;
|
||||||
final EdgeInsetsGeometry? padding;
|
final EdgeInsetsGeometry? padding;
|
||||||
final TextStyle? textStyle;
|
|
||||||
final VoidCallback? onTapAction;
|
final VoidCallback? onTapAction;
|
||||||
|
|
||||||
const UserAvatarBuilder({
|
const UserAvatarBuilder({
|
||||||
@@ -16,7 +15,6 @@ class UserAvatarBuilder extends StatelessWidget {
|
|||||||
this.size,
|
this.size,
|
||||||
this.textStyle,
|
this.textStyle,
|
||||||
this.padding,
|
this.padding,
|
||||||
this.textStyle,
|
|
||||||
this.onTapAction,
|
this.onTapAction,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
|
|||||||
+3
-2
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class AttachmentHeaderComposerWidgetStyle {
|
class AttachmentHeaderComposerWidgetStyle {
|
||||||
@@ -13,12 +14,12 @@ class AttachmentHeaderComposerWidgetStyle {
|
|||||||
static const EdgeInsetsGeometry sizeLabelPadding = EdgeInsetsDirectional.symmetric(horizontal: 5, vertical: 2);
|
static const EdgeInsetsGeometry sizeLabelPadding = EdgeInsetsDirectional.symmetric(horizontal: 5, vertical: 2);
|
||||||
static const EdgeInsetsGeometry padding = EdgeInsetsDirectional.all(8);
|
static const EdgeInsetsGeometry padding = EdgeInsetsDirectional.all(8);
|
||||||
|
|
||||||
static const TextStyle labelTextSize = TextStyle(
|
static TextStyle labelTextSize = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
color: AppColor.colorLabelComposer,
|
color: AppColor.colorLabelComposer,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500
|
||||||
);
|
);
|
||||||
static const TextStyle sizeLabelTextSize = TextStyle(
|
static TextStyle sizeLabelTextSize = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500
|
||||||
|
|||||||
+10
-6
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class AttachmentItemComposerWidgetStyle {
|
class AttachmentItemComposerWidgetStyle {
|
||||||
@@ -17,19 +18,22 @@ class AttachmentItemComposerWidgetStyle {
|
|||||||
static const EdgeInsetsGeometry deleteIconPadding = EdgeInsetsDirectional.all(3);
|
static const EdgeInsetsGeometry deleteIconPadding = EdgeInsetsDirectional.all(3);
|
||||||
static const EdgeInsetsGeometry progressLoadingPadding = EdgeInsetsDirectional.only(top: 8);
|
static const EdgeInsetsGeometry progressLoadingPadding = EdgeInsetsDirectional.only(top: 8);
|
||||||
|
|
||||||
static const TextStyle labelTextStyle = TextStyle(
|
static TextStyle labelTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500,
|
||||||
);
|
);
|
||||||
static const TextStyle dotsLabelTextStyle = TextStyle(
|
static TextStyle dotsLabelTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500,
|
||||||
);
|
);
|
||||||
static const TextStyle sizeLabelTextStyle = TextStyle(
|
static TextStyle sizeLabelTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
color: AppColor.colorLabelComposer,
|
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/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/utils/responsive_utils.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:core/utils/platform_info.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
@@ -42,7 +43,7 @@ class ComposerStyle {
|
|||||||
static const EdgeInsetsGeometry popupItemPadding = EdgeInsetsDirectional.symmetric(horizontal: 12);
|
static const EdgeInsetsGeometry popupItemPadding = EdgeInsetsDirectional.symmetric(horizontal: 12);
|
||||||
static const EdgeInsetsGeometry insertImageLoadingBarMargin = EdgeInsetsDirectional.only(top: 12);
|
static const EdgeInsetsGeometry insertImageLoadingBarMargin = EdgeInsetsDirectional.only(top: 12);
|
||||||
|
|
||||||
static const TextStyle popupItemTextStyle = TextStyle(
|
static TextStyle popupItemTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class DraggableRecipientTagWidgetStyle {
|
class DraggableRecipientTagWidgetStyle {
|
||||||
@@ -13,7 +14,7 @@ class DraggableRecipientTagWidgetStyle {
|
|||||||
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(horizontal: 6, vertical: 3);
|
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(horizontal: 6, vertical: 3);
|
||||||
static const EdgeInsetsGeometry labelPadding = EdgeInsets.symmetric(horizontal: 8);
|
static const EdgeInsetsGeometry labelPadding = EdgeInsets.symmetric(horizontal: 8);
|
||||||
|
|
||||||
static const TextStyle labelTextStyle = TextStyle(
|
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
fontWeight: FontWeight.normal
|
fontWeight: FontWeight.normal
|
||||||
|
|||||||
+6
-5
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class FromComposerBottomSheetStyle {
|
class FromComposerBottomSheetStyle {
|
||||||
@@ -29,27 +30,27 @@ class FromComposerBottomSheetStyle {
|
|||||||
color: AppColor.colorBgSearchBar
|
color: AppColor.colorBgSearchBar
|
||||||
);
|
);
|
||||||
|
|
||||||
static const TextStyle appBarTitleTextStyle = TextStyle(
|
static TextStyle appBarTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
fontSize: 20.0,
|
fontSize: 20.0,
|
||||||
);
|
);
|
||||||
static const TextStyle searchBarTextStyle = TextStyle(
|
static TextStyle searchBarTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 16.0,
|
fontSize: 16.0,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
);
|
);
|
||||||
static const TextStyle searchHintTextStyle = TextStyle(
|
static TextStyle searchHintTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: AppColor.loginTextFieldHintColor,
|
color: AppColor.loginTextFieldHintColor,
|
||||||
fontSize: 16.0,
|
fontSize: 16.0,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
);
|
);
|
||||||
static const TextStyle identityItemTitleTextStyle = TextStyle(
|
static TextStyle identityItemTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 16.0,
|
fontSize: 16.0,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
);
|
);
|
||||||
static const TextStyle identityItemSubTitleTextStyle = TextStyle(
|
static TextStyle identityItemSubTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
color: AppColor.colorLabelQuotas
|
color: AppColor.colorLabelQuotas
|
||||||
|
|||||||
+4
-3
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class FromComposerMobileWidgetStyle {
|
class FromComposerMobileWidgetStyle {
|
||||||
@@ -24,18 +25,18 @@ class FromComposerMobileWidgetStyle {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
static const TextStyle prefixTextStyle = TextStyle(
|
static TextStyle prefixTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
color: AppColor.colorLabelComposer
|
color: AppColor.colorLabelComposer
|
||||||
);
|
);
|
||||||
static const TextStyle buttonTitleTextStyle = TextStyle(
|
static TextStyle buttonTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: AppColor.colorCalendarEventUnread,
|
color: AppColor.colorCalendarEventUnread,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
);
|
);
|
||||||
static const TextStyle buttonSubTitleTextStyle = TextStyle(
|
static TextStyle buttonSubTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: AppColor.colorLabelComposer,
|
color: AppColor.colorLabelComposer,
|
||||||
|
|||||||
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class TabletBottomBarComposerWidgetStyle {
|
class TabletBottomBarComposerWidgetStyle {
|
||||||
@@ -18,7 +19,7 @@ class TabletBottomBarComposerWidgetStyle {
|
|||||||
static const EdgeInsetsGeometry padding = EdgeInsetsDirectional.symmetric(horizontal: 32, vertical: 12);
|
static const EdgeInsetsGeometry padding = EdgeInsetsDirectional.symmetric(horizontal: 32, vertical: 12);
|
||||||
static const EdgeInsetsGeometry iconPadding = EdgeInsetsDirectional.all(5);
|
static const EdgeInsetsGeometry iconPadding = EdgeInsetsDirectional.all(5);
|
||||||
static const EdgeInsetsGeometry sendButtonPadding = EdgeInsetsDirectional.symmetric(vertical: 8, horizontal: 24);
|
static const EdgeInsetsGeometry sendButtonPadding = EdgeInsetsDirectional.symmetric(vertical: 8, horizontal: 24);
|
||||||
static const TextStyle sendButtonTextStyle = TextStyle(
|
static TextStyle sendButtonTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class RecipientComposerWidgetStyle {
|
|||||||
static const EdgeInsetsGeometry recipientMargin = EdgeInsetsDirectional.only(top: 12);
|
static const EdgeInsetsGeometry recipientMargin = EdgeInsetsDirectional.only(top: 12);
|
||||||
static const EdgeInsetsGeometry enableRecipientButtonMargin = EdgeInsetsDirectional.only(top: 10);
|
static const EdgeInsetsGeometry enableRecipientButtonMargin = EdgeInsetsDirectional.only(top: 10);
|
||||||
|
|
||||||
static const TextStyle prefixButtonTextStyle = TextStyle(
|
static TextStyle prefixButtonTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontFamily: ConstantsUI.fontApp,
|
fontFamily: ConstantsUI.fontApp,
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
|
|||||||
+3
-2
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class RecipientSuggestionItemWidgetStyle {
|
class RecipientSuggestionItemWidgetStyle {
|
||||||
@@ -8,12 +9,12 @@ class RecipientSuggestionItemWidgetStyle {
|
|||||||
static const EdgeInsetsGeometry suggestionDuplicatedMargin = EdgeInsets.all(8.0);
|
static const EdgeInsetsGeometry suggestionDuplicatedMargin = EdgeInsets.all(8.0);
|
||||||
static const EdgeInsetsGeometry labelPadding = EdgeInsets.symmetric(horizontal: 16.0);
|
static const EdgeInsetsGeometry labelPadding = EdgeInsets.symmetric(horizontal: 16.0);
|
||||||
|
|
||||||
static const TextStyle labelTextStyle = TextStyle(
|
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: AppColor.colorHintSearchBar,
|
color: AppColor.colorHintSearchBar,
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
fontWeight: FontWeight.normal
|
fontWeight: FontWeight.normal
|
||||||
);
|
);
|
||||||
static const TextStyle labelHighlightTextStyle = TextStyle(
|
static TextStyle labelHighlightTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
fontWeight: FontWeight.bold
|
fontWeight: FontWeight.bold
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class RecipientTagItemWidgetStyle {
|
class RecipientTagItemWidgetStyle {
|
||||||
@@ -12,7 +13,7 @@ class RecipientTagItemWidgetStyle {
|
|||||||
static const EdgeInsetsGeometry webMobileCounterMargin = EdgeInsetsDirectional.only(start: 8);
|
static const EdgeInsetsGeometry webMobileCounterMargin = EdgeInsetsDirectional.only(start: 8);
|
||||||
static const EdgeInsetsGeometry webCounterMargin = EdgeInsetsDirectional.only(top: 8, 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,
|
color: Colors.black,
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
fontWeight: FontWeight.w400
|
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/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/utils/theme_utils.dart';
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -26,11 +25,7 @@ class BottomBarComposerWidgetStyle {
|
|||||||
static const EdgeInsetsGeometry richTextIconPadding = EdgeInsetsDirectional.all(2);
|
static const EdgeInsetsGeometry richTextIconPadding = EdgeInsetsDirectional.all(2);
|
||||||
static const EdgeInsetsGeometry popupItemPadding = EdgeInsetsDirectional.symmetric(horizontal: 12);
|
static const EdgeInsetsGeometry popupItemPadding = EdgeInsetsDirectional.symmetric(horizontal: 12);
|
||||||
|
|
||||||
static const TextStyle sendButtonTextStyle = TextStyle(
|
static TextStyle sendButtonTextStyle = ThemeUtils.textStyleHeadingHeadingSmall().copyWith(
|
||||||
fontFamily: ConstantsUI.fontApp,
|
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
fontSize: 17,
|
|
||||||
height: 22 / 17,
|
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
letterSpacing: -0.41,
|
letterSpacing: -0.41,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:tmail_ui_user/features/composer/presentation/styles/web/bottom_bar_composer_widget_style.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
|
top: 8
|
||||||
);
|
);
|
||||||
|
|
||||||
static const TextStyle labelTextStyle = TextStyle(
|
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 22,
|
fontSize: 22,
|
||||||
fontWeight: FontWeight.w600
|
fontWeight: FontWeight.w600
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class DropdownButtonFontSizeWidgetStyle {
|
class DropdownButtonFontSizeWidgetStyle {
|
||||||
@@ -14,7 +15,7 @@ class DropdownButtonFontSizeWidgetStyle {
|
|||||||
static const EdgeInsetsGeometry padding = EdgeInsets.all(4);
|
static const EdgeInsetsGeometry padding = EdgeInsets.all(4);
|
||||||
static const EdgeInsetsGeometry labelPadding = EdgeInsets.symmetric(horizontal: 16);
|
static const EdgeInsetsGeometry labelPadding = EdgeInsets.symmetric(horizontal: 16);
|
||||||
|
|
||||||
static const TextStyle labelTextStyle = TextStyle(
|
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: AppColor.colorLabelRichText
|
color: AppColor.colorLabelRichText
|
||||||
|
|||||||
+6
-6
@@ -63,32 +63,32 @@ class FromComposerDropDownWidgetStyle {
|
|||||||
height: 72,
|
height: 72,
|
||||||
overlayColor: WidgetStateProperty.resolveWith<Color>((Set<WidgetState> states) => Colors.white)
|
overlayColor: WidgetStateProperty.resolveWith<Color>((Set<WidgetState> states) => Colors.white)
|
||||||
);
|
);
|
||||||
static const TextStyle avatarTextStyle = TextStyle(
|
static TextStyle avatarTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
);
|
);
|
||||||
static const TextStyle dropdownItemTitleTextStyle = TextStyle(
|
static TextStyle dropdownItemTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: AppColor.colorDropDownItemTitleComposer,
|
color: AppColor.colorDropDownItemTitleComposer,
|
||||||
);
|
);
|
||||||
static const TextStyle dropdownItemSubTitleTextStyle = TextStyle(
|
static TextStyle dropdownItemSubTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
color: AppColor.colorLabelQuotas
|
color: AppColor.colorLabelQuotas
|
||||||
);
|
);
|
||||||
static const TextStyle dropdownTitleTextStyle = TextStyle(
|
static TextStyle dropdownTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: AppColor.colorDropDownTitleComposer,
|
color: AppColor.colorDropDownTitleComposer,
|
||||||
);
|
);
|
||||||
static const TextStyle dropdownButtonTitleTextStyle = TextStyle(
|
static TextStyle dropdownButtonTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: AppColor.colorCalendarEventUnread
|
color: AppColor.colorCalendarEventUnread
|
||||||
);
|
);
|
||||||
static const TextStyle dropdownButtonSubTitleTextStyle = TextStyle(
|
static TextStyle dropdownButtonSubTitleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: AppColor.colorLabelComposer
|
color: AppColor.colorLabelComposer
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
|
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class ItemMenuFontSizeWidgetStyle {
|
class ItemMenuFontSizeWidgetStyle {
|
||||||
static const TextStyle labelTextStyle = TextStyle(
|
static TextStyle labelTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ class AttachmentItemComposerWidget extends StatelessWidget with AppLoaderMixin {
|
|||||||
? ExtendedText(
|
? ExtendedText(
|
||||||
fileName,
|
fileName,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflowWidget: const TextOverflowWidget(
|
overflowWidget: TextOverflowWidget(
|
||||||
position: TextOverflowPosition.middle,
|
position: TextOverflowPosition.middle,
|
||||||
clearType: TextOverflowClearType.clipRect,
|
clearType: TextOverflowClearType.clipRect,
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/utils/style_utils.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:dropdown_button2/dropdown_button2.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:pointer_interceptor/pointer_interceptor.dart';
|
import 'package:pointer_interceptor/pointer_interceptor.dart';
|
||||||
@@ -106,10 +107,11 @@ class DropDownMenuHeaderStyleWidget extends StatelessWidget {
|
|||||||
|
|
||||||
Widget _buildHeaderStyle(String name, double size, FontWeight fontWeight) {
|
Widget _buildHeaderStyle(String name, double size, FontWeight fontWeight) {
|
||||||
return Text(name,
|
return Text(name,
|
||||||
style: TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: size,
|
fontSize: size,
|
||||||
fontWeight: fontWeight,
|
fontWeight: fontWeight,
|
||||||
color: Colors.black),
|
color: Colors.black,
|
||||||
|
),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow);
|
overflow: CommonTextStyle.defaultTextOverFlow);
|
||||||
|
|||||||
@@ -1,20 +1,23 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/utils/responsive_utils.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:core/utils/platform_info.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class ContactItemWidgetStyle {
|
class ContactItemWidgetStyle {
|
||||||
static const TextStyle nameAddressTextStyle = TextStyle(
|
static TextStyle nameAddressTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.w600
|
fontWeight: FontWeight.w600,
|
||||||
);
|
);
|
||||||
|
|
||||||
static const TextStyle emailAddressTextStyle = TextStyle(
|
static TextStyle emailAddressTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: AppColor.colorSubtitle,
|
color: AppColor.colorSubtitle,
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
fontWeight: FontWeight.w400
|
fontWeight: FontWeight.w400,
|
||||||
);
|
);
|
||||||
|
|
||||||
static EdgeInsetsGeometry getItemPadding(
|
static EdgeInsetsGeometry getItemPadding(
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/utils/responsive_utils.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:core/utils/platform_info.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
@@ -8,16 +9,18 @@ class ContactViewStyle {
|
|||||||
static const double viewMaxHeight = 624.0;
|
static const double viewMaxHeight = 624.0;
|
||||||
static const double viewMaxWidth = 558.0;
|
static const double viewMaxWidth = 558.0;
|
||||||
|
|
||||||
static TextStyle searchInputHintTextStyle = const TextStyle(
|
static TextStyle searchInputHintTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
color: AppColor.colorHintSearchBar
|
color: AppColor.colorHintSearchBar,
|
||||||
);
|
);
|
||||||
|
|
||||||
static TextStyle searchInputTextStyle = const TextStyle(
|
static TextStyle searchInputTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
color: Colors.black
|
color: Colors.black,
|
||||||
);
|
);
|
||||||
|
|
||||||
static double getContactViewHeight(
|
static double getContactViewHeight(
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/resources/image_paths.dart';
|
import 'package:core/presentation/resources/image_paths.dart';
|
||||||
import 'package:core/presentation/utils/responsive_utils.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/presentation/views/button/tmail_button_widget.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:tmail_ui_user/features/contact/presentation/styles/app_bar_contact_widget_style.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: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
title ?? AppLocalizations.of(context).contact,
|
title ?? AppLocalizations.of(context).contact,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
color: Colors.black
|
color: Colors.black
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/resources/image_paths.dart';
|
import 'package:core/presentation/resources/image_paths.dart';
|
||||||
import 'package:core/presentation/utils/style_utils.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/presentation/views/avatar/gradient_circle_avatar_icon.dart';
|
||||||
import 'package:core/utils/direction_utils.dart';
|
import 'package:core/utils/direction_utils.dart';
|
||||||
import 'package:core/utils/platform_info.dart';
|
import 'package:core/utils/platform_info.dart';
|
||||||
@@ -53,10 +54,11 @@ class ContactInputTagItem extends StatelessWidget {
|
|||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: Colors.black)
|
color: Colors.black,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
deleteIcon: deleteContactCallbackAction != null
|
deleteIcon: deleteContactCallbackAction != null
|
||||||
? SvgPicture.asset(
|
? SvgPicture.asset(
|
||||||
@@ -66,7 +68,11 @@ class ContactInputTagItem extends StatelessWidget {
|
|||||||
colorFilter: AppColor.colorDeleteContactIcon.asFilter(),
|
colorFilter: AppColor.colorDeleteContactIcon.asFilter(),
|
||||||
fit: BoxFit.fill)
|
fit: BoxFit.fill)
|
||||||
: null,
|
: 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(),
|
backgroundColor: _getTagBackgroundColor(),
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/capitalize_extension.dart';
|
import 'package:core/presentation/extensions/capitalize_extension.dart';
|
||||||
import 'package:core/presentation/extensions/color_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:core/presentation/views/button/tmail_button_widget.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||||
@@ -33,7 +34,7 @@ class ContactListActionWidget extends StatelessWidget {
|
|||||||
minWidth: 156,
|
minWidth: 156,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
textStyle: const TextStyle(
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
color: AppColor.primaryColor
|
color: AppColor.primaryColor
|
||||||
@@ -51,7 +52,7 @@ class ContactListActionWidget extends StatelessWidget {
|
|||||||
minWidth: 156,
|
minWidth: 156,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
textStyle: const TextStyle(
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
color: Colors.white
|
color: Colors.white
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/resources/image_paths.dart';
|
import 'package:core/presentation/resources/image_paths.dart';
|
||||||
import 'package:core/presentation/utils/style_utils.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/presentation/views/avatar/gradient_circle_avatar_icon.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
@@ -46,7 +47,7 @@ class ContactSuggestionBoxItem extends StatelessWidget {
|
|||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w500)
|
fontWeight: FontWeight.w500)
|
||||||
@@ -59,7 +60,7 @@ class ContactSuggestionBoxItem extends StatelessWidget {
|
|||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: AppColor.colorEmailAddressFull,
|
color: AppColor.colorEmailAddressFull,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.normal)
|
fontWeight: FontWeight.normal)
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ class DestinationPickerView extends GetWidget<DestinationPickerController>
|
|||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(context).selectParentFolder,
|
AppLocalizations.of(context).selectParentFolder,
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
color: AppColor.colorHintSearchBar,
|
color: AppColor.colorHintSearchBar,
|
||||||
fontWeight: FontWeight.normal)),
|
fontWeight: FontWeight.normal)),
|
||||||
@@ -220,7 +220,7 @@ class DestinationPickerView extends GetWidget<DestinationPickerController>
|
|||||||
controller: controller.nameInputController,
|
controller: controller.nameInputController,
|
||||||
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
textStyle: const TextStyle(
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: AppColor.colorNameEmail,
|
color: AppColor.colorNameEmail,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow),
|
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/resources/image_paths.dart';
|
||||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||||
import 'package:core/presentation/utils/style_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:core/utils/platform_info.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
@@ -97,7 +98,7 @@ class DestinationPickerSearchMailboxItemBuilder extends StatelessWidget {
|
|||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
color: Colors.black
|
color: Colors.black
|
||||||
),
|
),
|
||||||
@@ -111,7 +112,7 @@ class DestinationPickerSearchMailboxItemBuilder extends StatelessWidget {
|
|||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
color: AppColor.colorMailboxPath,
|
color: AppColor.colorMailboxPath,
|
||||||
fontWeight: FontWeight.normal
|
fontWeight: FontWeight.normal
|
||||||
@@ -123,7 +124,7 @@ class DestinationPickerSearchMailboxItemBuilder extends StatelessWidget {
|
|||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
color: AppColor.colorEmailAddressFull,
|
color: AppColor.colorEmailAddressFull,
|
||||||
fontWeight: FontWeight.normal
|
fontWeight: FontWeight.normal
|
||||||
|
|||||||
+2
-2
@@ -55,7 +55,7 @@ class TopBarDestinationPickerBuilder extends StatelessWidget {
|
|||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontWeight: FontWeight.w700))),
|
fontWeight: FontWeight.w700))),
|
||||||
@@ -103,7 +103,7 @@ class TopBarDestinationPickerBuilder extends StatelessWidget {
|
|||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
color: AppColor.colorTextButton,
|
color: AppColor.colorTextButton,
|
||||||
fontWeight: FontWeight.normal))
|
fontWeight: FontWeight.normal))
|
||||||
|
|||||||
+10
-6
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class AttachmentItemWidgetStyle {
|
class AttachmentItemWidgetStyle {
|
||||||
@@ -16,20 +17,23 @@ class AttachmentItemWidgetStyle {
|
|||||||
|
|
||||||
static const Color borderColor = AppColor.attachmentFileBorderColor;
|
static const Color borderColor = AppColor.attachmentFileBorderColor;
|
||||||
|
|
||||||
static const TextStyle labelTextStyle = TextStyle(
|
static TextStyle labelTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: AppColor.attachmentFileNameColor,
|
color: AppColor.attachmentFileNameColor,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500,
|
||||||
);
|
);
|
||||||
static const TextStyle dotsLabelTextStyle = TextStyle(
|
static TextStyle dotsLabelTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: AppColor.attachmentFileNameColor,
|
color: AppColor.attachmentFileNameColor,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500,
|
||||||
);
|
);
|
||||||
static const TextStyle sizeLabelTextStyle = TextStyle(
|
static TextStyle sizeLabelTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: AppColor.attachmentFileSizeColor,
|
color: AppColor.attachmentFileSizeColor,
|
||||||
fontWeight: FontWeight.normal
|
fontWeight: FontWeight.normal,
|
||||||
);
|
);
|
||||||
|
|
||||||
static double getMaxWidthItem({
|
static double getMaxWidthItem({
|
||||||
|
|||||||
+10
-6
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class AttachmentListItemWidgetStyle {
|
class AttachmentListItemWidgetStyle {
|
||||||
@@ -10,19 +11,22 @@ class AttachmentListItemWidgetStyle {
|
|||||||
|
|
||||||
static const EdgeInsetsGeometry contentPadding = EdgeInsetsDirectional.all(12);
|
static const EdgeInsetsGeometry contentPadding = EdgeInsetsDirectional.all(12);
|
||||||
|
|
||||||
static const TextStyle labelTextStyle = TextStyle(
|
static TextStyle labelTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: AppColor.attachmentFileNameColor,
|
color: AppColor.attachmentFileNameColor,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500,
|
||||||
);
|
);
|
||||||
static const TextStyle dotsLabelTextStyle = TextStyle(
|
static TextStyle dotsLabelTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: AppColor.attachmentFileNameColor,
|
color: AppColor.attachmentFileNameColor,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500,
|
||||||
);
|
);
|
||||||
static const TextStyle sizeLabelTextStyle = TextStyle(
|
static TextStyle sizeLabelTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: AppColor.attachmentFileSizeColor,
|
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/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class AttachmentListStyles {
|
class AttachmentListStyles {
|
||||||
@@ -89,24 +90,28 @@ class AttachmentListStyles {
|
|||||||
static const FontWeight subTitleFontWeight = FontWeight.w400;
|
static const FontWeight subTitleFontWeight = FontWeight.w400;
|
||||||
static const FontWeight buttonFontWeight = FontWeight.w500;
|
static const FontWeight buttonFontWeight = FontWeight.w500;
|
||||||
|
|
||||||
static const TextStyle titleTextStyle = TextStyle(
|
static TextStyle titleTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: titleFontSize,
|
fontSize: titleFontSize,
|
||||||
fontWeight: titleFontWeight,
|
fontWeight: titleFontWeight,
|
||||||
color: titleTextColor
|
color: titleTextColor,
|
||||||
);
|
);
|
||||||
static const TextStyle subTitleTextStyle = TextStyle(
|
static TextStyle subTitleTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: subTitleFontSize,
|
fontSize: subTitleFontSize,
|
||||||
fontWeight: subTitleFontWeight,
|
fontWeight: subTitleFontWeight,
|
||||||
color: subTitleTextColor
|
color: subTitleTextColor,
|
||||||
);
|
);
|
||||||
static const TextStyle downloadAllButtonTextStyle = TextStyle(
|
static TextStyle downloadAllButtonTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: titleFontSize,
|
fontSize: titleFontSize,
|
||||||
fontWeight: buttonFontWeight,
|
fontWeight: buttonFontWeight,
|
||||||
color: downloadAllButtonTextColor
|
color: downloadAllButtonTextColor,
|
||||||
);
|
);
|
||||||
static const TextStyle cancelButtonTextStyle = TextStyle(
|
static TextStyle cancelButtonTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: titleFontSize,
|
fontSize: titleFontSize,
|
||||||
fontWeight: buttonFontWeight,
|
fontWeight: buttonFontWeight,
|
||||||
color: cancelButtonTextColor
|
color: cancelButtonTextColor,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
+7
-4
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class FeedbackDraggableAttachmentItemWidgetStyle {
|
class FeedbackDraggableAttachmentItemWidgetStyle {
|
||||||
@@ -12,15 +13,17 @@ class FeedbackDraggableAttachmentItemWidgetStyle {
|
|||||||
|
|
||||||
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(horizontal: 16, vertical: 12);
|
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(horizontal: 16, vertical: 12);
|
||||||
|
|
||||||
static const TextStyle labelTextStyle = TextStyle(
|
static TextStyle labelTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500,
|
||||||
);
|
);
|
||||||
static const TextStyle dotsLabelTextStyle = TextStyle(
|
static TextStyle dotsLabelTextStyle =
|
||||||
|
ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500,
|
||||||
);
|
);
|
||||||
|
|
||||||
static const List<BoxShadow> shadows = [
|
static const List<BoxShadow> shadows = [
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class AttachmentItemWidget extends StatelessWidget {
|
|||||||
? ExtendedText(
|
? ExtendedText(
|
||||||
(attachment.name ?? ''),
|
(attachment.name ?? ''),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflowWidget: const TextOverflowWidget(
|
overflowWidget: TextOverflowWidget(
|
||||||
position: TextOverflowPosition.middle,
|
position: TextOverflowPosition.middle,
|
||||||
clearType: TextOverflowClearType.clipRect,
|
clearType: TextOverflowClearType.clipRect,
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|||||||
+1
-1
@@ -68,7 +68,7 @@ class AttachmentListItemWidget extends StatelessWidget {
|
|||||||
ExtendedText(
|
ExtendedText(
|
||||||
(attachment.name ?? ''),
|
(attachment.name ?? ''),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflowWidget: const TextOverflowWidget(
|
overflowWidget: TextOverflowWidget(
|
||||||
position: TextOverflowPosition.middle,
|
position: TextOverflowPosition.middle,
|
||||||
clearType: TextOverflowClearType.clipRect,
|
clearType: TextOverflowClearType.clipRect,
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/resources/image_paths.dart';
|
import 'package:core/presentation/resources/image_paths.dart';
|
||||||
import 'package:core/presentation/utils/responsive_utils.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/presentation/views/button/tmail_button_widget.dart';
|
||||||
import 'package:core/utils/platform_info.dart';
|
import 'package:core/utils/platform_info.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -44,7 +45,7 @@ class AttachmentsInfo extends StatelessWidget {
|
|||||||
numberOfAttachments,
|
numberOfAttachments,
|
||||||
totalSizeInfo,
|
totalSizeInfo,
|
||||||
),
|
),
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: EmailAttachmentsStyles.headerTextSize,
|
fontSize: EmailAttachmentsStyles.headerTextSize,
|
||||||
fontWeight: EmailAttachmentsStyles.headerFontWeight,
|
fontWeight: EmailAttachmentsStyles.headerFontWeight,
|
||||||
color: EmailAttachmentsStyles.headerTextColor
|
color: EmailAttachmentsStyles.headerTextColor
|
||||||
@@ -58,7 +59,7 @@ class AttachmentsInfo extends StatelessWidget {
|
|||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
borderRadius: EmailAttachmentsStyles.buttonBorderRadius,
|
borderRadius: EmailAttachmentsStyles.buttonBorderRadius,
|
||||||
padding: EmailAttachmentsStyles.buttonPadding,
|
padding: EmailAttachmentsStyles.buttonPadding,
|
||||||
textStyle: const TextStyle(
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: EmailAttachmentsStyles.buttonTextSize,
|
fontSize: EmailAttachmentsStyles.buttonTextSize,
|
||||||
color: EmailAttachmentsStyles.buttonTextColor,
|
color: EmailAttachmentsStyles.buttonTextColor,
|
||||||
fontWeight: EmailAttachmentsStyles.buttonFontWeight
|
fontWeight: EmailAttachmentsStyles.buttonFontWeight
|
||||||
@@ -77,7 +78,7 @@ class AttachmentsInfo extends StatelessWidget {
|
|||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
borderRadius: EmailAttachmentsStyles.buttonBorderRadius,
|
borderRadius: EmailAttachmentsStyles.buttonBorderRadius,
|
||||||
padding: EmailAttachmentsStyles.buttonPadding,
|
padding: EmailAttachmentsStyles.buttonPadding,
|
||||||
textStyle: const TextStyle(
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: EmailAttachmentsStyles.buttonTextSize,
|
fontSize: EmailAttachmentsStyles.buttonTextSize,
|
||||||
color: EmailAttachmentsStyles.buttonTextColor,
|
color: EmailAttachmentsStyles.buttonTextColor,
|
||||||
fontWeight: EmailAttachmentsStyles.buttonFontWeight
|
fontWeight: EmailAttachmentsStyles.buttonFontWeight
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/gestures.dart';
|
import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/calendar/properties/attendee/calendar_attendee.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) {
|
Widget build(BuildContext context) {
|
||||||
return Text.rich(
|
return Text.rich(
|
||||||
TextSpan(
|
TextSpan(
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: AttendeeWidgetStyles.textSize,
|
fontSize: AttendeeWidgetStyles.textSize,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: AttendeeWidgetStyles.textColor
|
color: AttendeeWidgetStyles.textColor
|
||||||
@@ -34,7 +35,7 @@ class AttendeeWidget extends StatelessWidget {
|
|||||||
if (attendee.mailto?.mailAddress.value.isNotEmpty == true)
|
if (attendee.mailto?.mailAddress.value.isNotEmpty == true)
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: ' <${attendee.mailto!.mailAddress.value}> ',
|
text: ' <${attendee.mailto!.mailAddress.value}> ',
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: AttendeeWidgetStyles.mailtoColor,
|
color: AttendeeWidgetStyles.mailtoColor,
|
||||||
fontSize: AttendeeWidgetStyles.textSize,
|
fontSize: AttendeeWidgetStyles.textSize,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500
|
||||||
|
|||||||
+4
-3
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.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/calendar_event.dart';
|
||||||
import 'package:tmail_ui_user/features/email/presentation/extensions/calendar_event_extension.dart';
|
import 'package:tmail_ui_user/features/email/presentation/extensions/calendar_event_extension.dart';
|
||||||
@@ -53,7 +54,7 @@ class CalendarDateIconWidget extends StatelessWidget {
|
|||||||
child: Text(
|
child: Text(
|
||||||
calendarEvent.monthStartDateAsString,
|
calendarEvent.monthStartDateAsString,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: CalendarIconWidgetStyles.headerTextSize,
|
fontSize: CalendarIconWidgetStyles.headerTextSize,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
color: Colors.white
|
color: Colors.white
|
||||||
@@ -64,7 +65,7 @@ class CalendarDateIconWidget extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.all(CalendarIconWidgetStyles.bodyContentPadding),
|
padding: const EdgeInsets.all(CalendarIconWidgetStyles.bodyContentPadding),
|
||||||
child: Text(
|
child: Text(
|
||||||
calendarEvent.dayStartDateAsString,
|
calendarEvent.dayStartDateAsString,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: CalendarIconWidgetStyles.bodyDayTextSize,
|
fontSize: CalendarIconWidgetStyles.bodyDayTextSize,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
color: Colors.black
|
color: Colors.black
|
||||||
@@ -79,7 +80,7 @@ class CalendarDateIconWidget extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.all(CalendarIconWidgetStyles.bodyContentPadding),
|
padding: const EdgeInsets.all(CalendarIconWidgetStyles.bodyContentPadding),
|
||||||
child: Text(
|
child: Text(
|
||||||
calendarEvent.weekDayStartDateAsString,
|
calendarEvent.weekDayStartDateAsString,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: CalendarIconWidgetStyles.bodyWeekDayTextSize,
|
fontSize: CalendarIconWidgetStyles.bodyWeekDayTextSize,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
color: Colors.black
|
color: Colors.black
|
||||||
|
|||||||
+3
-2
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/resources/image_paths.dart';
|
import 'package:core/presentation/resources/image_paths.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
@@ -46,7 +47,7 @@ class CalendarEventActionBannerWidget extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
Expanded(child: Text.rich(
|
Expanded(child: Text.rich(
|
||||||
TextSpan(
|
TextSpan(
|
||||||
style: TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: CalendarEventActionBannerStyles.titleTextSize,
|
fontSize: CalendarEventActionBannerStyles.titleTextSize,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
color: calendarEvent.getColorEventActionText(listEmailAddressSender)
|
color: calendarEvent.getColorEventActionText(listEmailAddressSender)
|
||||||
@@ -58,7 +59,7 @@ class CalendarEventActionBannerWidget extends StatelessWidget {
|
|||||||
imagePaths: imagePaths,
|
imagePaths: imagePaths,
|
||||||
listEmailAddressSender: listEmailAddressSender
|
listEmailAddressSender: listEmailAddressSender
|
||||||
),
|
),
|
||||||
style: TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: calendarEvent.getColorEventActionText(listEmailAddressSender),
|
color: calendarEvent.getColorEventActionText(listEmailAddressSender),
|
||||||
fontSize: CalendarEventActionBannerStyles.titleTextSize,
|
fontSize: CalendarEventActionBannerStyles.titleTextSize,
|
||||||
fontWeight: FontWeight.w700
|
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:core/presentation/views/button/tmail_button_widget.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/calendar/attendance/calendar_event_attendance.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),
|
backgroundColor: _getButtonBackgroundColor(action),
|
||||||
borderRadius: CalendarEventActionButtonWidgetStyles.borderRadius,
|
borderRadius: CalendarEventActionButtonWidgetStyles.borderRadius,
|
||||||
padding: CalendarEventActionButtonWidgetStyles.buttonPadding,
|
padding: CalendarEventActionButtonWidgetStyles.buttonPadding,
|
||||||
textStyle: TextStyle(
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontWeight: CalendarEventActionButtonWidgetStyles.fontWeight,
|
fontWeight: CalendarEventActionButtonWidgetStyles.fontWeight,
|
||||||
fontSize: CalendarEventActionButtonWidgetStyles.textSize,
|
fontSize: CalendarEventActionButtonWidgetStyles.textSize,
|
||||||
color: _getButtonTextColor(action),
|
color: _getButtonTextColor(action),
|
||||||
|
|||||||
+4
-3
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.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/calendar_event.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/calendar/attendance/calendar_event_attendance.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(
|
child: Text.rich(
|
||||||
TextSpan(
|
TextSpan(
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: CalendarEventInformationWidgetStyles
|
fontSize: CalendarEventInformationWidgetStyles
|
||||||
.invitationMessageTextSize,
|
.invitationMessageTextSize,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
@@ -96,7 +97,7 @@ class CalendarEventInformationWidget extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: calendarEvent.organizerName,
|
text: calendarEvent.organizerName,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: CalendarEventInformationWidgetStyles
|
color: CalendarEventInformationWidgetStyles
|
||||||
.invitationMessageColor,
|
.invitationMessageColor,
|
||||||
fontSize: CalendarEventInformationWidgetStyles
|
fontSize: CalendarEventInformationWidgetStyles
|
||||||
@@ -159,7 +160,7 @@ class CalendarEventInformationWidget extends StatelessWidget {
|
|||||||
AppLocalizations
|
AppLocalizations
|
||||||
.of(context)
|
.of(context)
|
||||||
.youAreNotInvitedToThisEventPleaseContactTheOrganizer,
|
.youAreNotInvitedToThisEventPleaseContactTheOrganizer,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: CalendarEventInformationWidgetStyles
|
fontSize: CalendarEventInformationWidgetStyles
|
||||||
.invitationMessageTextSize,
|
.invitationMessageTextSize,
|
||||||
fontWeight: FontWeight.w500,
|
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:core/utils/app_logger.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/calendar/properties/attendee/calendar_attendee.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,
|
width: EventAttendeeDetailWidgetStyles.maxWidth,
|
||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(context).who,
|
AppLocalizations.of(context).who,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: EventAttendeeDetailWidgetStyles.textSize,
|
fontSize: EventAttendeeDetailWidgetStyles.textSize,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: EventAttendeeDetailWidgetStyles.labelColor
|
color: EventAttendeeDetailWidgetStyles.labelColor
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:tmail_ui_user/features/base/widget/hyper_link_widget.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';
|
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,
|
width: EventLinkDetailWidgetStyles.maxWidth,
|
||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(context).link,
|
AppLocalizations.of(context).link,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: EventLinkDetailWidgetStyles.textSize,
|
fontSize: EventLinkDetailWidgetStyles.textSize,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: EventLinkDetailWidgetStyles.labelColor
|
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:core/utils/app_logger.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_linkify/flutter_linkify.dart';
|
import 'package:flutter_linkify/flutter_linkify.dart';
|
||||||
@@ -28,7 +29,7 @@ class EventLocationInformationWidget extends StatelessWidget {
|
|||||||
width: EventLocationInformationWidgetStyles.maxWidth,
|
width: EventLocationInformationWidgetStyles.maxWidth,
|
||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(context).where,
|
AppLocalizations.of(context).where,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: EventLocationInformationWidgetStyles.textSize,
|
fontSize: EventLocationInformationWidgetStyles.textSize,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: EventLocationInformationWidgetStyles.labelColor
|
color: EventLocationInformationWidgetStyles.labelColor
|
||||||
@@ -49,7 +50,7 @@ class EventLocationInformationWidget extends StatelessWidget {
|
|||||||
EmailLinkifier(),
|
EmailLinkifier(),
|
||||||
UrlLinkifier()
|
UrlLinkifier()
|
||||||
],
|
],
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: EventLocationInformationWidgetStyles.textSize,
|
fontSize: EventLocationInformationWidgetStyles.textSize,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: EventLocationInformationWidgetStyles.valueColor
|
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/resources/image_paths.dart';
|
||||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||||
import 'package:core/presentation/utils/style_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/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
@@ -32,7 +33,7 @@ class EventTimeInformationWidget extends StatelessWidget {
|
|||||||
width: EventTimeInformationWidgetStyles.maxWidth,
|
width: EventTimeInformationWidgetStyles.maxWidth,
|
||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(context).when,
|
AppLocalizations.of(context).when,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: EventTimeInformationWidgetStyles.textSize,
|
fontSize: EventTimeInformationWidgetStyles.textSize,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: EventTimeInformationWidgetStyles.labelColor
|
color: EventTimeInformationWidgetStyles.labelColor
|
||||||
@@ -44,7 +45,7 @@ class EventTimeInformationWidget extends StatelessWidget {
|
|||||||
overflow: responsiveUtils.isPortraitMobile(context) ? null : CommonTextStyle.defaultTextOverFlow,
|
overflow: responsiveUtils.isPortraitMobile(context) ? null : CommonTextStyle.defaultTextOverFlow,
|
||||||
softWrap: responsiveUtils.isPortraitMobile(context) ? null : CommonTextStyle.defaultSoftWrap,
|
softWrap: responsiveUtils.isPortraitMobile(context) ? null : CommonTextStyle.defaultSoftWrap,
|
||||||
maxLines: responsiveUtils.isPortraitMobile(context) ? null : 1,
|
maxLines: responsiveUtils.isPortraitMobile(context) ? null : 1,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: EventTimeInformationWidgetStyles.textSize,
|
fontSize: EventTimeInformationWidgetStyles.textSize,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: EventTimeInformationWidgetStyles.valueColor
|
color: EventTimeInformationWidgetStyles.valueColor
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:tmail_ui_user/features/email/presentation/styles/event_title_widget_styles.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) {
|
Widget build(BuildContext context) {
|
||||||
return Text(
|
return Text(
|
||||||
title,
|
title,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
fontSize: EventTitleWidgetStyles.textSize,
|
fontSize: EventTitleWidgetStyles.textSize,
|
||||||
color: EventTitleWidgetStyles.textColor
|
color: EventTitleWidgetStyles.textColor
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:tmail_ui_user/features/base/widget/material_text_button.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';
|
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,
|
horizontal: SeeAllAttendeesButtonWidgetStyles.horizontalPadding,
|
||||||
vertical: SeeAllAttendeesButtonWidgetStyles.verticalPadding
|
vertical: SeeAllAttendeesButtonWidgetStyles.verticalPadding
|
||||||
),
|
),
|
||||||
customStyle: const TextStyle(
|
customStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: SeeAllAttendeesButtonWidgetStyles.textSize,
|
fontSize: SeeAllAttendeesButtonWidgetStyles.textSize,
|
||||||
color: SeeAllAttendeesButtonWidgetStyles.textColor
|
color: SeeAllAttendeesButtonWidgetStyles.textColor
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/gestures.dart';
|
import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/calendar/properties/calendar_organizer.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) {
|
Widget build(BuildContext context) {
|
||||||
return Text.rich(
|
return Text.rich(
|
||||||
TextSpan(
|
TextSpan(
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: OrganizerWidgetStyles.textSize,
|
fontSize: OrganizerWidgetStyles.textSize,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: OrganizerWidgetStyles.textColor
|
color: OrganizerWidgetStyles.textColor
|
||||||
@@ -33,7 +34,7 @@ class OrganizerWidget extends StatelessWidget {
|
|||||||
if (organizer.mailto?.value.isNotEmpty == true)
|
if (organizer.mailto?.value.isNotEmpty == true)
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: ' <${organizer.mailto!.value}> ',
|
text: ' <${organizer.mailto!.value}> ',
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: OrganizerWidgetStyles.mailtoColor,
|
color: OrganizerWidgetStyles.mailtoColor,
|
||||||
fontSize: OrganizerWidgetStyles.textSize,
|
fontSize: OrganizerWidgetStyles.textSize,
|
||||||
fontWeight: FontWeight.w500
|
fontWeight: FontWeight.w500
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:tmail_ui_user/features/base/widget/material_text_button.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';
|
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,
|
horizontal: SeeAllAttendeesButtonWidgetStyles.horizontalPadding,
|
||||||
vertical: SeeAllAttendeesButtonWidgetStyles.verticalPadding
|
vertical: SeeAllAttendeesButtonWidgetStyles.verticalPadding
|
||||||
),
|
),
|
||||||
customStyle: const TextStyle(
|
customStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: SeeAllAttendeesButtonWidgetStyles.textSize,
|
fontSize: SeeAllAttendeesButtonWidgetStyles.textSize,
|
||||||
color: SeeAllAttendeesButtonWidgetStyles.textColor
|
color: SeeAllAttendeesButtonWidgetStyles.textColor
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import 'package:core/presentation/action/action_callback_define.dart';
|
import 'package:core/presentation/action/action_callback_define.dart';
|
||||||
import 'package:core/presentation/resources/image_paths.dart';
|
import 'package:core/presentation/resources/image_paths.dart';
|
||||||
import 'package:core/presentation/utils/responsive_utils.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/presentation/views/button/tmail_button_widget.dart';
|
||||||
import 'package:core/utils/platform_info.dart';
|
import 'package:core/utils/platform_info.dart';
|
||||||
import 'package:filesize/filesize.dart';
|
import 'package:filesize/filesize.dart';
|
||||||
@@ -54,7 +55,7 @@ class EmailAttachmentsWidget extends StatelessWidget {
|
|||||||
padding: padding,
|
padding: padding,
|
||||||
maxWidth: EmailAttachmentsStyles.buttonMoreMaxWidth,
|
maxWidth: EmailAttachmentsStyles.buttonMoreMaxWidth,
|
||||||
margin: margin,
|
margin: margin,
|
||||||
textStyle: const TextStyle(
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: EmailAttachmentsStyles.buttonMoreAttachmentsTextSize,
|
fontSize: EmailAttachmentsStyles.buttonMoreAttachmentsTextSize,
|
||||||
color: EmailAttachmentsStyles.buttonMoreAttachmentsTextColor,
|
color: EmailAttachmentsStyles.buttonMoreAttachmentsTextColor,
|
||||||
fontWeight: EmailAttachmentsStyles.buttonMoreAttachmentsFontWeight,
|
fontWeight: EmailAttachmentsStyles.buttonMoreAttachmentsFontWeight,
|
||||||
@@ -152,7 +153,7 @@ class EmailAttachmentsWidget extends StatelessWidget {
|
|||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
borderRadius: EmailAttachmentsStyles.buttonBorderRadius,
|
borderRadius: EmailAttachmentsStyles.buttonBorderRadius,
|
||||||
padding: EmailAttachmentsStyles.mobileButtonPadding,
|
padding: EmailAttachmentsStyles.mobileButtonPadding,
|
||||||
textStyle: const TextStyle(
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: EmailAttachmentsStyles.buttonTextSize,
|
fontSize: EmailAttachmentsStyles.buttonTextSize,
|
||||||
color: EmailAttachmentsStyles.buttonTextColor,
|
color: EmailAttachmentsStyles.buttonTextColor,
|
||||||
fontWeight: EmailAttachmentsStyles.buttonFontWeight
|
fontWeight: EmailAttachmentsStyles.buttonFontWeight
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.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/features/email/presentation/styles/email_view_empty_styles.dart';
|
||||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||||
@@ -12,7 +13,7 @@ class EmailViewEmptyWidget extends StatelessWidget {
|
|||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(context).no_mail_selected,
|
AppLocalizations.of(context).no_mail_selected,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: EmailViewEmptyStyles.textSize,
|
fontSize: EmailViewEmptyStyles.textSize,
|
||||||
color: EmailViewEmptyStyles.textColor,
|
color: EmailViewEmptyStyles.textColor,
|
||||||
fontWeight: EmailViewEmptyStyles.fontWeight
|
fontWeight: EmailViewEmptyStyles.fontWeight
|
||||||
|
|||||||
+1
-1
@@ -50,7 +50,7 @@ class FeedbackDraggableAttachmentItemWidget extends StatelessWidget {
|
|||||||
child: ExtendedText(
|
child: ExtendedText(
|
||||||
attachment.name ?? '',
|
attachment.name ?? '',
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflowWidget: const TextOverflowWidget(
|
overflowWidget: TextOverflowWidget(
|
||||||
position: TextOverflowPosition.middle,
|
position: TextOverflowPosition.middle,
|
||||||
clearType: TextOverflowClearType.clipRect,
|
clearType: TextOverflowClearType.clipRect,
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/resources/image_paths.dart';
|
import 'package:core/presentation/resources/image_paths.dart';
|
||||||
import 'package:core/presentation/utils/responsive_utils.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/presentation/views/button/tmail_button_widget.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
@@ -82,7 +83,7 @@ class InformationSenderAndReceiverBuilder extends StatelessWidget {
|
|||||||
if (!emailSelected.isSubscribed && emailUnsubscribe != null && !responsiveUtils.isPortraitMobile(context))
|
if (!emailSelected.isSubscribed && emailUnsubscribe != null && !responsiveUtils.isPortraitMobile(context))
|
||||||
TMailButtonWidget.fromText(
|
TMailButtonWidget.fromText(
|
||||||
text: AppLocalizations.of(context).unsubscribe,
|
text: AppLocalizations.of(context).unsubscribe,
|
||||||
textStyle: const TextStyle(
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: AppColor.colorTextBody,
|
color: AppColor.colorTextBody,
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:model/email/presentation_email.dart';
|
import 'package:model/email/presentation_email.dart';
|
||||||
import 'package:tmail_ui_user/features/email/presentation/model/email_unsubscribe.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),
|
padding: const EdgeInsetsDirectional.only(bottom: 16, start: 20, end: 20),
|
||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(context).mailUnsubscribedMessage(presentationEmail?.firstEmailAddressInFrom ?? ''),
|
AppLocalizations.of(context).mailUnsubscribedMessage(presentationEmail?.firstEmailAddressInFrom ?? ''),
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
color: AppColor.labelColor
|
color: AppColor.labelColor
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.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/features/email_recovery/presentation/model/email_recovery_time_type.dart';
|
||||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||||
@@ -69,7 +70,7 @@ enum EmailRecoveryField {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TextStyle getTitleTextStyle() {
|
TextStyle getTitleTextStyle() {
|
||||||
return const TextStyle(
|
return ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
color: AppColor.colorContentEmail,
|
color: AppColor.colorContentEmail,
|
||||||
@@ -89,7 +90,7 @@ enum EmailRecoveryField {
|
|||||||
color = AppColor.colorHintSearchBar;
|
color = AppColor.colorHintSearchBar;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return TextStyle(
|
return ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
color: color,
|
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:dropdown_button2/dropdown_button2.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
@@ -26,7 +27,7 @@ class DateSelectionDropdownButtonStyles {
|
|||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
);
|
);
|
||||||
|
|
||||||
static const TextStyle selectedValueTexStyle = TextStyle(
|
static TextStyle selectedValueTexStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class EmailRecoveryFormStyles {
|
class EmailRecoveryFormStyles {
|
||||||
@@ -11,7 +12,7 @@ class EmailRecoveryFormStyles {
|
|||||||
vertical: 12,
|
vertical: 12,
|
||||||
);
|
);
|
||||||
|
|
||||||
static const TextStyle titleTextStyle = TextStyle(
|
static TextStyle titleTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
|
|||||||
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class AvatarSuggestionItemWidgetStyles {
|
class AvatarSuggestionItemWidgetStyles {
|
||||||
@@ -5,7 +6,7 @@ class AvatarSuggestionItemWidgetStyles {
|
|||||||
static const double height = 40.0;
|
static const double height = 40.0;
|
||||||
static const double borderWidth = 1.0;
|
static const double borderWidth = 1.0;
|
||||||
|
|
||||||
static const TextStyle textStyle = TextStyle(
|
static TextStyle textStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w400
|
fontWeight: FontWeight.w400
|
||||||
|
|||||||
+2
-1
@@ -1,10 +1,11 @@
|
|||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class AvatarTagItemWidgetStyles {
|
class AvatarTagItemWidgetStyles {
|
||||||
static const double size = 24.0;
|
static const double size = 24.0;
|
||||||
static const double borderWidth = 0.21;
|
static const double borderWidth = 0.21;
|
||||||
|
|
||||||
static const TextStyle textStyle = TextStyle(
|
static TextStyle textStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 8.57,
|
fontSize: 8.57,
|
||||||
fontWeight: FontWeight.w600
|
fontWeight: FontWeight.w600
|
||||||
|
|||||||
+3
-2
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:tmail_ui_user/features/composer/presentation/styles/composer_style.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))
|
borderRadius: BorderRadius.all(Radius.circular(20))
|
||||||
);
|
);
|
||||||
|
|
||||||
static const TextStyle subTitleTextOriginStyle = TextStyle(
|
static TextStyle subTitleTextOriginStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: AppColor.colorHintSearchBar,
|
color: AppColor.colorHintSearchBar,
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
fontWeight: FontWeight.normal
|
fontWeight: FontWeight.normal
|
||||||
);
|
);
|
||||||
static const TextStyle subTitleWordSearchedStyle = TextStyle(
|
static TextStyle subTitleWordSearchedStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
fontWeight: FontWeight.bold
|
fontWeight: FontWeight.bold
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class SuggestionTagItemWidgetStyles {
|
class SuggestionTagItemWidgetStyles {
|
||||||
@@ -24,7 +25,7 @@ class SuggestionTagItemWidgetStyles {
|
|||||||
width: 1,
|
width: 1,
|
||||||
);
|
);
|
||||||
|
|
||||||
static const TextStyle labelStyle = TextStyle(
|
static TextStyle labelStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
fontWeight: FontWeight.w400
|
fontWeight: FontWeight.w400
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class TextInputFieldWidgetStyles {
|
class TextInputFieldWidgetStyles {
|
||||||
@@ -42,7 +43,7 @@ class TextInputFieldWidgetStyles {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
static const TextStyle inputtedTextStyle = TextStyle(
|
static TextStyle inputtedTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
|
|||||||
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:tmail_ui_user/features/composer/presentation/styles/composer_style.dart';
|
import 'package:tmail_ui_user/features/composer/presentation/styles/composer_style.dart';
|
||||||
|
|
||||||
@@ -34,7 +35,7 @@ class TextInputSuggestionFieldWidgetStyles {
|
|||||||
borderSide: BorderSide.none,
|
borderSide: BorderSide.none,
|
||||||
);
|
);
|
||||||
|
|
||||||
static const TextStyle inputFieldTextStyle = TextStyle(
|
static TextStyle inputFieldTextStyle = ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:core/presentation/utils/theme_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class LimitsBanner extends StatelessWidget {
|
class LimitsBanner extends StatelessWidget {
|
||||||
@@ -20,7 +21,7 @@ class LimitsBanner extends StatelessWidget {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
bannerContent,
|
bannerContent,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontWeight: FontWeight.bold,
|
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:core/presentation/views/button/icon_button_web.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:tmail_ui_user/features/email_recovery/presentation/styles/text_action_button_widget_styles.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,
|
radius: TextActionButtonWidgetStyles.radius,
|
||||||
height: TextActionButtonWidgetStyles.height,
|
height: TextActionButtonWidgetStyles.height,
|
||||||
minWidth: minWidth,
|
minWidth: minWidth,
|
||||||
textStyle: TextStyle(
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: TextActionButtonWidgetStyles.fontSize,
|
fontSize: TextActionButtonWidgetStyles.fontSize,
|
||||||
color: colorText,
|
color: colorText,
|
||||||
fontWeight: FontWeight.w500
|
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/capitalize_extension.dart';
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/utils/style_utils.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/button/icon_button_web.dart';
|
||||||
import 'package:core/presentation/views/responsive/responsive_widget.dart';
|
import 'package:core/presentation/views/responsive/responsive_widget.dart';
|
||||||
import 'package:core/utils/html/html_utils.dart';
|
import 'package:core/utils/html/html_utils.dart';
|
||||||
@@ -105,7 +106,7 @@ class IdentityCreatorView extends GetWidget<IdentityCreatorController>
|
|||||||
)),
|
)),
|
||||||
const SizedBox(height: 32),
|
const SizedBox(height: 32),
|
||||||
Text(AppLocalizations.of(context).signature,
|
Text(AppLocalizations.of(context).signature,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: AppColor.colorContentEmail,
|
color: AppColor.colorContentEmail,
|
||||||
@@ -430,7 +431,7 @@ class IdentityCreatorView extends GetWidget<IdentityCreatorController>
|
|||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
color: Colors.black
|
color: Colors.black
|
||||||
@@ -621,7 +622,7 @@ class IdentityCreatorView extends GetWidget<IdentityCreatorController>
|
|||||||
Widget _buildCancelButton(BuildContext context, {double? width}) {
|
Widget _buildCancelButton(BuildContext context, {double? width}) {
|
||||||
return buildTextButton(
|
return buildTextButton(
|
||||||
AppLocalizations.of(context).cancel,
|
AppLocalizations.of(context).cancel,
|
||||||
textStyle: const TextStyle(
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
color: AppColor.colorTextButton,
|
color: AppColor.colorTextButton,
|
||||||
|
|||||||
+9
-4
@@ -2,6 +2,7 @@
|
|||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/resources/image_paths.dart';
|
import 'package:core/presentation/resources/image_paths.dart';
|
||||||
import 'package:core/presentation/utils/style_utils.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:dropdown_button2/dropdown_button2.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
@@ -32,7 +33,7 @@ class IdentityDropListFieldBuilder extends StatelessWidget {
|
|||||||
return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
||||||
Text(
|
Text(
|
||||||
_label,
|
_label,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: AppColor.colorContentEmail)),
|
color: AppColor.colorContentEmail)),
|
||||||
@@ -40,11 +41,15 @@ class IdentityDropListFieldBuilder extends StatelessWidget {
|
|||||||
DropdownButtonHideUnderline(
|
DropdownButtonHideUnderline(
|
||||||
child: DropdownButton2<EmailAddress>(
|
child: DropdownButton2<EmailAddress>(
|
||||||
isExpanded: true,
|
isExpanded: true,
|
||||||
hint: const Row(
|
hint: Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(child: Text(
|
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,
|
maxLines: 1,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
@@ -55,7 +60,7 @@ class IdentityDropListFieldBuilder extends StatelessWidget {
|
|||||||
value: item,
|
value: item,
|
||||||
child: Text(
|
child: Text(
|
||||||
item.emailAddress,
|
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,
|
maxLines: 1,
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
|
|||||||
+3
-2
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/utils/style_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/material.dart';
|
||||||
import 'package:jmap_dart_client/jmap/mail/email/email_address.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: [
|
return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
||||||
Text(
|
Text(
|
||||||
_label,
|
_label,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: AppColor.colorContentEmail)),
|
color: AppColor.colorContentEmail)),
|
||||||
@@ -36,7 +37,7 @@ class IdentityFieldNoEditableBuilder extends StatelessWidget {
|
|||||||
color: AppColor.colorInputBackgroundCreateMailbox),
|
color: AppColor.colorInputBackgroundCreateMailbox),
|
||||||
child: Text(
|
child: Text(
|
||||||
_emailAddressSelected?.email ?? '',
|
_emailAddressSelected?.email ?? '',
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: AppColor.colorInputBorderCreateMailbox),
|
color: AppColor.colorInputBorderCreateMailbox),
|
||||||
|
|||||||
+3
-3
@@ -22,13 +22,13 @@ class IdentityInputDecorationBuilder extends InputDecorationBuilder {
|
|||||||
prefixText: prefixText,
|
prefixText: prefixText,
|
||||||
labelText: labelText,
|
labelText: labelText,
|
||||||
floatingLabelBehavior: FloatingLabelBehavior.never,
|
floatingLabelBehavior: FloatingLabelBehavior.never,
|
||||||
labelStyle: labelStyle ?? const TextStyle(color: Colors.black, fontSize: 16),
|
labelStyle: labelStyle ?? ThemeUtils.defaultTextStyleInterFont.copyWith(color: Colors.black, fontSize: 16),
|
||||||
hintText: hintText,
|
hintText: hintText,
|
||||||
isDense: true,
|
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),
|
contentPadding: contentPadding ?? const EdgeInsets.symmetric(horizontal: 12, vertical: 12),
|
||||||
errorText: errorText?.isNotEmpty == true ? errorText : null,
|
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,
|
filled: true,
|
||||||
fillColor: errorText?.isNotEmpty == true
|
fillColor: errorText?.isNotEmpty == true
|
||||||
? AppColor.colorInputBackgroundErrorVerifyName
|
? AppColor.colorInputBackgroundErrorVerifyName
|
||||||
|
|||||||
+3
-2
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
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/presentation/views/text/text_field_builder.dart';
|
||||||
import 'package:core/utils/direction_utils.dart';
|
import 'package:core/utils/direction_utils.dart';
|
||||||
import 'package:core/utils/platform_info.dart';
|
import 'package:core/utils/platform_info.dart';
|
||||||
@@ -37,7 +38,7 @@ class IdentityInputFieldBuilder extends StatelessWidget {
|
|||||||
Text(
|
Text(
|
||||||
isMandatory
|
isMandatory
|
||||||
? '$_label ($requiredIndicator)'
|
? '$_label ($requiredIndicator)'
|
||||||
: _label, style: const TextStyle(
|
: _label, style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
color: AppColor.colorContentEmail)),
|
color: AppColor.colorContentEmail)),
|
||||||
@@ -50,7 +51,7 @@ class IdentityInputFieldBuilder extends StatelessWidget {
|
|||||||
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
||||||
controller: editingController,
|
controller: editingController,
|
||||||
focusNode: focusNode,
|
focusNode: focusNode,
|
||||||
textStyle: const TextStyle(color: Colors.black, fontSize: 16),
|
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(color: Colors.black, fontSize: 16),
|
||||||
keyboardType: inputType ?? TextInputType.text,
|
keyboardType: inputType ?? TextInputType.text,
|
||||||
semanticLabel: 'Identity input field',
|
semanticLabel: 'Identity input field',
|
||||||
decoration: (IdentityInputDecorationBuilder()
|
decoration: (IdentityInputDecorationBuilder()
|
||||||
|
|||||||
+3
-2
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
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/presentation/views/text/type_ahead_form_field_builder.dart';
|
||||||
import 'package:core/utils/platform_info.dart';
|
import 'package:core/utils/platform_info.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -36,7 +37,7 @@ class IdentityInputWithDropListFieldBuilder extends StatelessWidget {
|
|||||||
return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
||||||
Text(
|
Text(
|
||||||
_label,
|
_label,
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: AppColor.colorContentEmail)),
|
color: AppColor.colorContentEmail)),
|
||||||
@@ -67,7 +68,7 @@ class IdentityInputWithDropListFieldBuilder extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
|
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
|
||||||
child: Text(
|
child: Text(
|
||||||
emailAddress.email ?? '',
|
emailAddress.email ?? '',
|
||||||
style: const TextStyle(
|
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
color: Colors.black)));
|
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