Published
- 1 min read
setState() or markNeedsBuild() called during build.
The solution for this is noted below
setState() or markNeedsBuild() called during build.
Solution
WidgetsBinding.instance.addPostFrameCallback((_){
// Add Your Code here.
});
Try other methods by searching on the site. That is if this doesn’t work