setState() or markNeedsBuild() called during build how to fix this in flutter code example
Example: setState() or markNeedsBuild() called during build.
WidgetsBinding.instance.addPostFrameCallback((_){
// Add Your Code here.
});
WidgetsBinding.instance.addPostFrameCallback((_){
// Add Your Code here.
});