Add presentation layer for get Session

This commit is contained in:
dab246
2021-07-29 18:26:31 +07:00
committed by Dat H. Pham
parent 59da162655
commit 740859054a
19 changed files with 180 additions and 15 deletions
@@ -39,7 +39,9 @@ class MailboxView extends GetWidget<MailboxController> {
left: false,
child: RefreshIndicator(
color: AppColor.primaryColor,
onRefresh: () async => controller.getAllMailboxAction(),
onRefresh: () async => mailboxDashBoardController.sessionCurrent != null
? controller.getAllMailboxAction(mailboxDashBoardController.sessionCurrent!.accounts.keys.first)
: null,
child: SingleChildScrollView(
physics: AlwaysScrollableScrollPhysics(),
child: Padding(