Flutter - Cannot build because the frawework is already building

前端 未结 1 732
夕颜
夕颜 2020-12-10 02:46

I am building a page, dynamicly generating some views into it. In my case the list showned will updated given the user input (used as a filter).

All was working perf

相关标签:
1条回答
  • 2020-12-10 03:26

    You have an issue with your onTap handler. It is trying to show the dialog immediately during your build function, which is not allowed.

    onTap: showInfos(serv),
    

    Change your handler to be a function:

    onTap: () => showInfos(serv),
    
    0 讨论(0)
提交回复
热议问题