Add presentation layer for GetEmailContent
This commit is contained in:
@@ -98,8 +98,8 @@ class MailboxController extends BaseController {
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
SelectMode getSelectMode(PresentationMailbox presentationMailbox, PresentationMailbox selectedMailbox) {
|
||||
return presentationMailbox.id == selectedMailbox.id
|
||||
SelectMode getSelectMode(PresentationMailbox presentationMailbox, PresentationMailbox? selectedMailbox) {
|
||||
return presentationMailbox.id == selectedMailbox?.id
|
||||
? SelectMode.ACTIVE
|
||||
: SelectMode.INACTIVE;
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ class MailboxView extends GetWidget<MailboxController> {
|
||||
|
||||
Widget _buildCloseScreenButton(BuildContext context) {
|
||||
return Padding(
|
||||
padding: EdgeInsets.only(left: 24, top: responsiveUtils.isMobile(context) ? 0 : 12),
|
||||
padding: EdgeInsets.only(left: 16, top: responsiveUtils.isMobile(context) ? 0 : 12),
|
||||
child: IconButton(
|
||||
key: Key('mailbox_close_button'),
|
||||
onPressed: () => controller.closeMailboxScreen(),
|
||||
|
||||
@@ -17,7 +17,7 @@ class StorageWidgetBuilder {
|
||||
padding: EdgeInsets.only(left: 40, top: 16, bottom: 20, right: 40),
|
||||
color: AppColor.storageBackgroundColor,
|
||||
alignment: Alignment.bottomLeft,
|
||||
height: 112,
|
||||
height: 100,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
||||
@@ -33,7 +33,10 @@ class UserInformationWidgetBuilder {
|
||||
_onOpenUserInformationActionClick!();
|
||||
}
|
||||
},
|
||||
leading: SvgPicture.asset(_imagePaths.icTMailLogo, width: 40, height: 40, fit: BoxFit.fill),
|
||||
leading: AvatarBuilder()
|
||||
.text('J')
|
||||
.size(40)
|
||||
.build(),
|
||||
title: Transform(
|
||||
transform: Matrix4.translationValues(0.0, 0.0, 0.0),
|
||||
child: Text(
|
||||
|
||||
Reference in New Issue
Block a user