How to update the UI when items inside DropDownButtonFormField changes?

I was working with DropDownButtonFormField2 where the items come from the API call. The problem is, when the API call is finished, the dropdown list items are not updated. After the API call is finished, I already called setState(). But the item list is not updated, I need to go to other screen and go… Read More How to update the UI when items inside DropDownButtonFormField changes?

ReactionDisposer is not recognizing change in enum ( mobx )

After the update of flutter_mobx: ^2.0.6+1 and mobx_codegen: ^2.0.7 the ReactionDisposer is not recognizing changes in enum late ReactionDisposer _refreshDisposer; Completer<dynamic> refreshCompleter = new Completer(); @override void initState() { super.initState(); _refreshDisposer = reaction((_) => _vendorStore.serviceState, (_) { if (_ != LoadingEnum.loading) { refreshCompleter.complete(); refreshCompleter = Completer(); } }); } Observer is working fine but ReactionDisposer… Read More ReactionDisposer is not recognizing change in enum ( mobx )