TF-3944 Use just a placeholder for subject instead of title label
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
@@ -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,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user