Fix alignment receive time in email view

This commit is contained in:
dab246
2024-09-16 09:33:20 +07:00
committed by Dat H. Pham
parent cf67fda510
commit f2b1eab5bc
2 changed files with 200 additions and 198 deletions
@@ -147,7 +147,6 @@ class _RecipientComposerWidgetState extends State<RecipientComposerWidget> {
const SizedBox(width: RecipientComposerWidgetStyle.space),
Expanded(
child: FocusScope(
child: Focus(
onFocusChange: (focus) => widget.onFocusEmailAddressChangeAction?.call(widget.prefix, focus),
onKeyEvent: PlatformInfo.isWeb ? _recipientInputOnKeyListener : null,
child: StatefulBuilder(
@@ -317,7 +316,6 @@ class _RecipientComposerWidgetState extends State<RecipientComposerWidget> {
},
)
)
)
),
const SizedBox(width: RecipientComposerWidgetStyle.space),
if (widget.prefix == PrefixEmailAddress.to)
@@ -58,6 +58,8 @@ class InformationSenderAndReceiverBuilder extends StatelessWidget {
children: [
if (emailSelected.from?.isNotEmpty == true)
Row(children: [
Expanded(child: Row(
children: [
Flexible(child: Transform(
transform: Matrix4.translationValues(-5.0, 0.0, 0.0),
child: EmailSenderBuilder(
@@ -90,6 +92,8 @@ class InformationSenderAndReceiverBuilder extends StatelessWidget {
backgroundColor: Colors.transparent,
onTapActionCallback: () => onEmailActionClick?.call(emailSelected, EmailActionType.unsubscribe),
),
]
)),
ReceivedTimeBuilder(emailSelected: emailSelected),
]),
if (emailSelected.numberOfAllEmailAddress() > 0)