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
@@ -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,
),
);
}