Skip to content
RED SAGSkills
medium10 pts · first answer countscross-platform-mobileflutter

setState called during build

A widget calls `setState(() => count++)` directly inside its build method and the app shows "setState() or markNeedsBuild() called during build". Why is this wrong?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions