This is the scenario
From my knowledge, I think unlike BLoC there's nothing like BlocListener
or BlocConsumer
in GetX. But you can use RxWorker
to achieve this like:
ever(someObservable, (){
doSomething(); // show dialog, snackbar, navigate to other pages
}
Just remember you need to put this before the return
of your build
method.