-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LateInitializationError: Field '_controller@1501137672' has already been initialized #45
Comments
I haven't personally run into this but I think you're triggering a rebuild which triggers this line which then calls this: and sets the values of the appropriate callbacks. I'm not totally sure about late fields but I thought their values could be set at any time (after their first initialization) so long as they weren't marked If you could provide steps to reproduce I can revisit this later |
nope, I found the actual issue. I misread that stack trace and assumed it was the controller's field that were being reinitiatlized but its actually the controller itself. On trigger of widget rebuild and if there's a new controller value passed to which will set the value of the controller to a new value which will error because it's a late final. Solution is probably to just remove |
Try |
Hi, I have error when I try create a new justTheController
Any ideas?
The text was updated successfully, but these errors were encountered: