In any programming language or framework, the most debated question is something related to state management or architecture pattern.
And the solution for this always evolving and it’s completely based on application needs and your familiarity with the approach.
Since last Google I/O 2019, I was completely aligned with Provider package which uses the concept of InheritedWidget behind the scene and simplifies the usage InheritedWidget for the application developer.
By using this package your code can be more simplified, more readable and more maintainable. You can get rid of many stateful widgets and logical stuff out of your UI widgets to some other classes which can extend ChangeNotifier or few other provider compatible types. …