Skip to content

Error on setState() #7

Description

@Alijaaan

Hi friend,
Thanks for your nice package, but I have a problem,
When I'm doing setState in onSelectedDateChange I have the error :

The following assertion was thrown building Container(constraints: BoxConstraints(0.0<=w<=Infinity, h=35.0)):
setState() or markNeedsBuild() called during build.
This AddNewEventPage widget cannot be marked as needing to build because the framework is already in the process of building widgets. A widget can be marked as needing to be built during the build phase only if one of its ancestors is currently building. This exception is allowed because the framework builds parent widgets before children, which means a dirty descendant will always be built. Otherwise, the framework might not visit this widget during this build phase.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions