TF-145 Implement refresh changes emails in mailbox

This commit is contained in:
dab246
2021-10-07 16:55:03 +07:00
committed by Dat H. Pham
parent aa8ab28b2e
commit a19f18c437
10 changed files with 180 additions and 83 deletions
@@ -217,11 +217,11 @@ class ThreadView extends GetWidget<ThreadController> {
? controller.emailList.isNotEmpty
? RefreshIndicator(
color: AppColor.primaryColor,
onRefresh: () async => controller.refreshGetAllEmailAction(),
onRefresh: () async => controller.refreshAllEmail(),
child: _buildListEmailBody(context, controller.emailList))
: RefreshIndicator(
color: AppColor.primaryColor,
onRefresh: () async => controller.refreshGetAllEmailAction(),
onRefresh: () async => controller.refreshAllEmail(),
child: _buildEmptyEmail(context))
: controller.emailList.isNotEmpty
? _buildListEmailBody(context, controller.emailList)