TF-3944 Use just a placeholder for subject instead of title label

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-08-06 00:04:19 +07:00
committed by Dat H. Pham
parent 22be6b4b0c
commit 7f9949fa5b
2 changed files with 15 additions and 22 deletions
@@ -9,10 +9,10 @@ class SubjectComposerWidgetStyle {
static const Color cursorColor = AppColor.primaryColor; static const Color cursorColor = AppColor.primaryColor;
static const Color borderColor = AppColor.colorLineComposer; static const Color borderColor = AppColor.colorLineComposer;
static final TextStyle labelTextStyle = ThemeUtils.textStyleBodyBody1( static final TextStyle hintTextStyle = ThemeUtils.textStyleBodyBody1(
color: AppColor.m3Tertiary, color: AppColor.m3Tertiary,
); );
static final TextStyle inputTextStyle = ThemeUtils.textStyleBodyBody1( static final TextStyle inputTextStyle = ThemeUtils.textStyleBodyBody1(
color: AppColor.m3SurfaceBackground, color: Colors.black,
); );
} }
@@ -34,26 +34,19 @@ class SubjectComposerWidget extends StatelessWidget {
), ),
margin: margin, margin: margin,
padding: padding, padding: padding,
child: Row( child: TextFieldBuilder(
children: [ cursorColor: SubjectComposerWidgetStyle.cursorColor,
Text( focusNode: focusNode,
'${AppLocalizations.of(context).subject_email}:', onTextChange: onTextChange,
style: SubjectComposerWidgetStyle.labelTextStyle, maxLines: 1,
), decoration: InputDecoration(
const SizedBox(width:SubjectComposerWidgetStyle.space), border: InputBorder.none,
Expanded( hintText: AppLocalizations.of(context).subject,
child: TextFieldBuilder( hintStyle: SubjectComposerWidgetStyle.hintTextStyle,
cursorColor: SubjectComposerWidgetStyle.cursorColor, ),
focusNode: focusNode, textDirection: DirectionUtils.getDirectionByLanguage(context),
onTextChange: onTextChange, textStyle: SubjectComposerWidgetStyle.inputTextStyle,
maxLines: 1, controller: textController,
decoration: const InputDecoration(border: InputBorder.none),
textDirection: DirectionUtils.getDirectionByLanguage(context),
textStyle: SubjectComposerWidgetStyle.inputTextStyle,
controller: textController,
)
)
]
), ),
); );
} }