add check availble filter rule in session

This commit is contained in:
ManhNTX
2022-08-09 13:19:44 +07:00
committed by Dat H. Pham
parent 2178b8f313
commit 900af08921
12 changed files with 91 additions and 50 deletions
@@ -18,14 +18,9 @@ class EmailRulesController extends BaseController {
Get.find<ManageAccountDashBoardController>();
final GetAllRulesInteractor _getAllRulesInteractor;
final _imagePaths = Get.find<ImagePaths>();
late Worker accountIdWorker;
EmailRulesController(this._getAllRulesInteractor);
void _clearWorker() {
accountIdWorker.call();
}
@override
void onDone() {
viewState.value.fold((failure) {}, (success) {
@@ -46,12 +41,6 @@ class EmailRulesController extends BaseController {
super.onInit();
}
@override
void onClose() {
_clearWorker();
super.onClose();
}
void goToCreateNewRule() {
//TODO: goToCreateNewRule
}
@@ -57,8 +57,8 @@ class EmailRulesView extends GetWidget<EmailRulesController> with AppLoaderMixin
(failure) => const SizedBox.shrink(),
(success) => success is LoadingState
? Padding(
padding: const EdgeInsets.only(bottom: 24),
child: loadingWidget)
padding: const EdgeInsets.only(bottom: 24),
child: loadingWidget)
: const SizedBox.shrink()
));
}