TF-1865: Update UI and replace task in workmanager when update sending email

(cherry picked from commit 15168421c994c5f928873e0794bcbf0c36b015c9)
This commit is contained in:
HuyNguyen
2023-06-06 01:30:43 +07:00
committed by Dat Vu
parent 9ca0c7385a
commit ee6bf907ff
13 changed files with 206 additions and 170 deletions
@@ -22,12 +22,14 @@ class SendingQueueView extends GetWidget<SendingQueueController> with AppLoaderM
body: SafeArea(
child: Column(
children: [
Obx(() => AppBarSendingQueueWidget(
listSendingEmails: controller.dashboardController!.listSendingEmails,
onOpenMailboxMenu: controller.openMailboxMenu,
onBackAction: controller.disableSelectionMode,
selectMode: controller.selectionState.value,
)),
Obx(() {
return AppBarSendingQueueWidget(
listSendingEmails: controller.listSendingEmailSelected,
onOpenMailboxMenu: controller.openMailboxMenu,
onBackAction: controller.disableSelectionMode,
selectMode: controller.selectionState.value,
);
}),
const Divider(color: AppColor.colorDividerComposer, height: 1),
const BannerMessageSendingQueueWidget(),
Expanded(child: _buildListSendingEmails(context)),
@@ -36,7 +38,7 @@ class SendingQueueView extends GetWidget<SendingQueueController> with AppLoaderM
return const SizedBox.shrink();
} else {
return BottomBarSendingQueueWidget(
listSendingEmails: controller.dashboardController!.listSendingEmails,
listSendingEmails: controller.listSendingEmailSelected,
onHandleSendingEmailActionType: (actionType, listSendingEmails) => controller.handleSendingEmailActionType(context, actionType, listSendingEmails),
);
}
@@ -60,8 +62,9 @@ class SendingQueueView extends GetWidget<SendingQueueController> with AppLoaderM
sendingEmail: controller.dashboardController!.listSendingEmails[index],
selectMode: controller.selectionState.value,
onLongPressAction: controller.handleOnLongPressAction,
onSelectAction: controller.toggleSelectionSendingEmail,
));
onSelectLeadingAction: controller.toggleSelectionSendingEmail,
onTapAction: (actionType, listSendingEmails) =>
controller.handleSendingEmailActionType(context, actionType, [listSendingEmails])));
}
);
} else {