section-engineering-education / engineering-education

“Section's Engineering Education (EngEd) Program is dedicated to offering a unique quality community experience for computer science university students."
Apache License 2.0
363 stars 890 forks source link

Riverpod vs provider In flutter #7475

Closed samwaigwa closed 2 years ago

samwaigwa commented 2 years ago

Riverpod Vs. Provider In Flutter

Proposed article introduction

The one point of contention with flutter is that there are far "too many" state management methods to choose from, making it difficult to decide which to utilize. There is some truth to that, as well as the fact that there is a largely overlooked benefit to this; I will write a detailed article about it soon, but the one benefit is that it is much easier to find state management solutions that are almost exactly the right fit for your situation, rather than "one size fits all" solutions with unnecessary redundancies and complexities. So far, we've looked at state management methods including stateful widgets, hooks, inherited widgets, Providers, and others, all of which are generally a good fit for small projects.

Providers, as we all know, were based on inherited widgets that added their own features to make it easier to use, intuitive, readable, and all the other benefits it offered. However, as the number of codebases grew, so did the number of needs, exposing more of the provider's flaws. The widget tree and build contexts are heavily reliant on the provider, which isn't necessarily a negative thing, but it does come with risks.

Key takeaways

github-actions[bot] commented 2 years ago

👋 @samwaigwa Good afternoon and thank you for submitting your topic suggestion. Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.

LinusMuema commented 2 years ago

Hi @samwaigwa

You need to clear the pre-submission advice for us to easily review your article suggestion. We will be closing this at the moment so you can work on this. Once done, please ping us so we can review it.

samwaigwa commented 2 years ago

@LinusMuema am done rectifying

samwaigwa commented 2 years ago

@LinusMuema kindly reopen the issue and approve it