TF-3410 Use TextTheme apply almost text style for text widget

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-03-10 02:18:34 +07:00
committed by Dat H. Pham
parent efe1c801c1
commit a258dec4ee
87 changed files with 1774 additions and 1776 deletions
@@ -1,5 +1,7 @@
import 'package:core/presentation/constants/constants_ui.dart';
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
import 'package:tmail_ui_user/features/composer/presentation/styles/composer_style.dart';
@@ -30,15 +32,19 @@ class RecipientComposerWidgetStyle {
static const EdgeInsetsGeometry enableRecipientButtonMargin = EdgeInsetsDirectional.only(top: 10);
static const TextStyle prefixButtonTextStyle = TextStyle(
fontFamily: ConstantsUI.fontApp,
fontSize: 15,
fontWeight: FontWeight.normal,
fontWeight: FontWeight.w400,
height: 24 / 15,
letterSpacing: -0.01,
decoration: TextDecoration.underline,
decorationColor: AppColor.m3Neutral70,
color: AppColor.m3Neutral70,
);
static const TextStyle inputTextStyle = TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
color: Colors.black
static final TextStyle inputTextStyle = ThemeUtils.textStyleBodyBody1(
color: AppColor.m3SurfaceBackground,
);
static final TextStyle prefixLabelTextStyle = ThemeUtils.textStyleBodyBody1(
color: AppColor.m3Tertiary,
);
}
@@ -1,5 +1,6 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:flutter/material.dart';
class SubjectComposerWidgetStyle {
@@ -8,9 +9,10 @@ class SubjectComposerWidgetStyle {
static const Color cursorColor = AppColor.primaryColor;
static const Color borderColor = AppColor.colorLineComposer;
static const TextStyle inputTextStyle = TextStyle(
color: Colors.black,
fontSize: 16,
fontWeight: FontWeight.w500
static final TextStyle labelTextStyle = ThemeUtils.textStyleBodyBody1(
color: AppColor.m3Tertiary,
);
static final TextStyle inputTextStyle = ThemeUtils.textStyleBodyBody1(
color: AppColor.m3SurfaceBackground,
);
}
@@ -1,8 +1,11 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:dropdown_button2/dropdown_button2.dart';
import 'package:flutter/material.dart';
class FromComposerDropDownWidgetStyle {
FromComposerDropDownWidgetStyle._();
static const double space = 8.0;
static const double dropdownItemSpace = 12.0;
static const double avatarSize = 48.0;
@@ -90,4 +93,7 @@ class FromComposerDropDownWidgetStyle {
fontWeight: FontWeight.w500,
color: AppColor.colorLabelComposer
);
static final TextStyle prefixLabelTextStyle = ThemeUtils.textStyleBodyBody1(
color: AppColor.m3Tertiary,
);
}