The above error you get in general if you use Riverpod. It’s a widget to provided by Riverpod to prevent unnecessary rebuild of widget for performance optimization.
In the context of Riverpod, “dirty” is often used to describe a state that has changed and needs to be updated or rebuilt. The UncontrolledProviderScope
is a widget in Riverpod that allows you to control how and when providers are rebuilt.
But the error message StackOverflow or Stack Overflow means we have circular dependencies or something is going on in a loop.
After checking a lot I found that the issue was with my code and I was calling something in an infinite loop.
Here I was calling appTextField inside appTextField that was going on infinite loop. I was trying to create a reusable widget with optional named parameter.
I had to rename it and that solved the problem.
Take the Riverpod course and learn advanced concepts of Dart and Riverpod