From 7f9949fa5b20900b31d7fb91ddc5726455cb5b95 Mon Sep 17 00:00:00 2001 From: dab246 Date: Wed, 6 Aug 2025 00:04:19 +0700 Subject: [PATCH] TF-3944 Use just a placeholder for subject instead of title label Signed-off-by: dab246 --- .../styles/subject_composer_widget_style.dart | 4 +-- .../widgets/subject_composer_widget.dart | 33 ++++++++----------- 2 files changed, 15 insertions(+), 22 deletions(-) diff --git a/lib/features/composer/presentation/styles/subject_composer_widget_style.dart b/lib/features/composer/presentation/styles/subject_composer_widget_style.dart index a7e0a4892..8c19d41d4 100644 --- a/lib/features/composer/presentation/styles/subject_composer_widget_style.dart +++ b/lib/features/composer/presentation/styles/subject_composer_widget_style.dart @@ -9,10 +9,10 @@ class SubjectComposerWidgetStyle { static const Color cursorColor = AppColor.primaryColor; static const Color borderColor = AppColor.colorLineComposer; - static final TextStyle labelTextStyle = ThemeUtils.textStyleBodyBody1( + static final TextStyle hintTextStyle = ThemeUtils.textStyleBodyBody1( color: AppColor.m3Tertiary, ); static final TextStyle inputTextStyle = ThemeUtils.textStyleBodyBody1( - color: AppColor.m3SurfaceBackground, + color: Colors.black, ); } \ No newline at end of file diff --git a/lib/features/composer/presentation/widgets/subject_composer_widget.dart b/lib/features/composer/presentation/widgets/subject_composer_widget.dart index f7aa1ac1e..152a09483 100644 --- a/lib/features/composer/presentation/widgets/subject_composer_widget.dart +++ b/lib/features/composer/presentation/widgets/subject_composer_widget.dart @@ -34,26 +34,19 @@ class SubjectComposerWidget extends StatelessWidget { ), margin: margin, padding: padding, - child: Row( - children: [ - Text( - '${AppLocalizations.of(context).subject_email}:', - style: SubjectComposerWidgetStyle.labelTextStyle, - ), - const SizedBox(width:SubjectComposerWidgetStyle.space), - Expanded( - child: TextFieldBuilder( - cursorColor: SubjectComposerWidgetStyle.cursorColor, - focusNode: focusNode, - onTextChange: onTextChange, - maxLines: 1, - decoration: const InputDecoration(border: InputBorder.none), - textDirection: DirectionUtils.getDirectionByLanguage(context), - textStyle: SubjectComposerWidgetStyle.inputTextStyle, - controller: textController, - ) - ) - ] + child: TextFieldBuilder( + cursorColor: SubjectComposerWidgetStyle.cursorColor, + focusNode: focusNode, + onTextChange: onTextChange, + maxLines: 1, + decoration: InputDecoration( + border: InputBorder.none, + hintText: AppLocalizations.of(context).subject, + hintStyle: SubjectComposerWidgetStyle.hintTextStyle, + ), + textDirection: DirectionUtils.getDirectionByLanguage(context), + textStyle: SubjectComposerWidgetStyle.inputTextStyle, + controller: textController, ), ); }