Flutter: bloc, how to show an alert dialog

前端 未结 5 1640
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-19 19:01

I´m new in the bloc pattern and stream stuff. I want to show up an alert dialog when I press a button, but I can´t find a way to do it. Actually my code is:

Widg         


        
5条回答
  •  耶瑟儿~
    2021-02-19 19:51

    this process working for me. I called my Dialog before return the widget

    Future.microtask(() => showLoginSuccess(BuildContext context));

提交回复
热议问题