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), const SizedBox(width: RecipientComposerWidgetStyle.space),
Expanded( Expanded(
child: FocusScope( child: FocusScope(
child: Focus(
onFocusChange: (focus) => widget.onFocusEmailAddressChangeAction?.call(widget.prefix, focus), onFocusChange: (focus) => widget.onFocusEmailAddressChangeAction?.call(widget.prefix, focus),
onKeyEvent: PlatformInfo.isWeb ? _recipientInputOnKeyListener : null, onKeyEvent: PlatformInfo.isWeb ? _recipientInputOnKeyListener : null,
child: StatefulBuilder( child: StatefulBuilder(
@@ -317,7 +316,6 @@ class _RecipientComposerWidgetState extends State<RecipientComposerWidget> {
}, },
) )
) )
)
), ),
const SizedBox(width: RecipientComposerWidgetStyle.space), const SizedBox(width: RecipientComposerWidgetStyle.space),
if (widget.prefix == PrefixEmailAddress.to) if (widget.prefix == PrefixEmailAddress.to)
@@ -58,6 +58,8 @@ class InformationSenderAndReceiverBuilder extends StatelessWidget {
children: [ children: [
if (emailSelected.from?.isNotEmpty == true) if (emailSelected.from?.isNotEmpty == true)
Row(children: [ Row(children: [
Expanded(child: Row(
children: [
Flexible(child: Transform( Flexible(child: Transform(
transform: Matrix4.translationValues(-5.0, 0.0, 0.0), transform: Matrix4.translationValues(-5.0, 0.0, 0.0),
child: EmailSenderBuilder( child: EmailSenderBuilder(
@@ -90,6 +92,8 @@ class InformationSenderAndReceiverBuilder extends StatelessWidget {
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
onTapActionCallback: () => onEmailActionClick?.call(emailSelected, EmailActionType.unsubscribe), onTapActionCallback: () => onEmailActionClick?.call(emailSelected, EmailActionType.unsubscribe),
), ),
]
)),
ReceivedTimeBuilder(emailSelected: emailSelected), ReceivedTimeBuilder(emailSelected: emailSelected),
]), ]),
if (emailSelected.numberOfAllEmailAddress() > 0) if (emailSelected.numberOfAllEmailAddress() > 0)