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
@@ -147,11 +147,7 @@ class _RecipientComposerWidgetState extends State<RecipientComposerWidget> {
child: Text(
'${widget.prefix.asName(context)}:',
key: Key('prefix_${widget.prefix.name}_recipient_composer_widget'),
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
fontSize: 16,
fontWeight: FontWeight.w500,
color: AppColor.m3Tertiary,
),
style: RecipientComposerWidgetStyle.prefixLabelTextStyle,
),
),
const SizedBox(width: RecipientComposerWidgetStyle.space),
@@ -147,7 +147,7 @@ class RecipientTagItemWidget extends StatelessWidget {
if (isLatestTagFocused && isLatestEmail) {
return AppColor.colorItemRecipientSelected;
} else if (EmailUtils.isEmailAddressValid(currentEmailAddress.emailAddress)) {
return AppColor.colorF3F6F9;
return AppColor.grayBackgroundColor;
} else {
return Colors.white;
}
@@ -1,4 +1,3 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/views/text/text_field_builder.dart';
import 'package:core/utils/direction_utils.dart';
import 'package:flutter/material.dart';
@@ -39,11 +38,7 @@ class SubjectComposerWidget extends StatelessWidget {
children: [
Text(
'${AppLocalizations.of(context).subject_email}:',
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
fontSize: 16,
fontWeight: FontWeight.w500,
color: AppColor.m3Tertiary,
),
style: SubjectComposerWidgetStyle.labelTextStyle,
),
const SizedBox(width:SubjectComposerWidgetStyle.space),
Expanded(
@@ -55,11 +55,7 @@ class FromComposerDropDownWidget extends StatelessWidget {
padding: FromComposerDropDownWidgetStyle.prefixPadding,
child: Text(
'${PrefixEmailAddress.from.asName(context)}:',
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
fontSize: 16,
fontWeight: FontWeight.w500,
color: AppColor.m3Tertiary,
),
style: FromComposerDropDownWidgetStyle.prefixLabelTextStyle,
),
),
const SizedBox(width: FromComposerDropDownWidgetStyle.space),