Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider Tutorial example isn't responsive as it's shown on the tutorial (010 and 012) itself #131

Open
randikachan opened this issue May 22, 2021 · 1 comment

Comments

@randikachan
Copy link

Hi Dane,

These days I'm experimenting with Flutter and trying to find out an easily maintainable, straightforward, and readable architecture.

So I stumbled upon the architecture you are teaching for Provider (yes there are many successors now such as StackedProvider and RiverPod, but I want to learn from the beginning).

I followed two of your videos:

Most of the application works fine as shown on the video tutorial. But it doesn't appear to be that much reactive/responsive as it's shown on your Videos. Two main issues are:

  • After login, the posts fetching API call doesn't get called properly, needs to try for the second time.
  • Like counts don't get refreshed properly as shown on the tutorial.

Herewith I have attached my source code as well. (Google Drive link to download the source code and the screencast)

I experimented and tried so many things to figure out what's wrong with it.

ezgif-4-aedaa3549a8b

Could you please let me know what you think of the error in it?

P.S.:
I even downloaded the source code from your GitHub repository and tried it out still it too has the same issue.

@FilledStacks
Copy link
Owner

Hey @randikachan Since this code was published over a year ago provider itself has gone through many updates so the code won't work exactly as it is. If you understand the architecture then stacked should work perfectly fine for you. It's the exact same code, just wrapped so you don't have to write and maintain 200 lines of code for basic setup functionality.

I won't be able to help you with this old code because I wouldn't recommend using it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants