Flutter – setState does not update state immediately when using it in a showDialog method
I have the following method that contains a Flutter dialog. This dialog serves the purpose of a filter menu. Here is the code: Future<void> _showFilterDialog() async { await showDialog<void>( context: context, builder: (BuildContext context) { return SimpleDialog( // <-- SEE…