FilledStacks / FilledStacks/flutter-tutorials

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

Aperta
#131 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Dart
Stelle
4.8k
Fork
1.7k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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:

- Flutter Provider Architecture for State Management | Flutter Provider
- Written: https://www.filledstacks.com/post/flutter-architecture-my-provider-implementation-guide/
- Flutter Provider - A Follow up to my Architecture Guide
- Written: https://www.filledstacks.com/post/flutter-provider-architecture-sharing-data-across-your-models/

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)](https://drive.google.com/drive/folders/1CuyFvRbggrMDNeZV3-tqkI8pVQP8ov_w?usp=sharing)

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

![ezgif-4-aedaa3549a8b](https://user-images.githubusercontent.com/18655436/119235853-0b865f00-bb52-11eb-9d3f-b687c6760a72.gif)

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

La issue indica gli esempi 010 e 012 del tutorial di Provider e collega gli articoli corrispondenti; inizia riproducendo con il codice sorgente del repository i flussi di login, recupero dei post e aggiornamento del conteggio dei like. È completato quando il primo login recupera i post e i conteggi dei like vengono aggiornati senza un secondo tentativo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
dart, flutter
Ambito
mobile-dev
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.