TF-355 Fix the empty mailbox message not correct when filtering

This commit is contained in:
dab246
2023-01-27 17:11:44 +07:00
committed by Dat Vu
parent 16d360bb00
commit c51ece70f2
9 changed files with 265 additions and 83 deletions
@@ -392,14 +392,11 @@ class SearchEmailView extends GetWidget<SearchEmailController>
return Obx(() => controller.viewState.value.fold(
(failure) => const SizedBox.shrink(),
(success) => success is! SearchingState
? (BackgroundWidgetBuilder(context)
..image(SvgPicture.asset(
_imagePaths.icEmptyImageDefault,
width: 120,
height: 120,
fit: BoxFit.fill))
..text(AppLocalizations.of(context).no_emails_matching_your_search))
.build()
? BackgroundWidgetBuilder(
AppLocalizations.of(context).no_emails_matching_your_search,
controller.responsiveUtils,
iconSVG: _imagePaths.icEmptyEmail
)
: const SizedBox.shrink())
);
}