While setting state from parent class setState() or markNeedsBuild() called during build

后端 未结 0 1975
忘掉有多难
忘掉有多难 2021-01-12 05:20

I need to call the funciton via constructor of stateless widget. Since, I cannot set a state inside a stateless widget. I need to set it from parent of the LightButton

相关标签:
回答
  • 消灭零回复
提交回复
热议问题