FilledStacks / flutter-tutorials

The repo contains the source code for all the tutorials on the FilledStacks Youtube channel.
MIT License
4.74k stars 1.76k forks source link

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

Open randikachan opened 3 years ago

randikachan commented 3 years ago

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:

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 commented 3 years ago

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.