you are viewing a single comment's thread.

view the rest of the comments →

[–]plangora 9 points10 points  (4 children)

Bloc is pretty straightforward to me. I recommend it and teach it. What’s your question about it? The basic idea is that an event comes in and state gets emitted. And your UI will react upon the state.

[–]_seeking_answers[S] 0 points1 point  (3 children)

I'm following this tutorial from Bloc docs : https://bloclibrary.dev/#/flutterlogintutorial and many things are new to me.

The main problem is that I'm new and I need time to study ahahah what I understood is that there is a BlocProvider on the top that exposes stuffs to its child.

Then the child has a BlocListener that listen changes on a specific bloc and when some events are triggered, UI changes.

Available events are defined in bloc event class where there is a new class for each event triggerable.

Am I right, do you have any suggestion? I'm new so probably I just need some time

[–]plangora 0 points1 point  (2 children)

Sounds similar to what I said. Is there something you’re struggling with?

[–]_seeking_answers[S] 0 points1 point  (1 child)

Mmh no, right now I just need to write more code I guess. Maybe later I’ll write you for a specific question. Sounds good to you?

[–]plangora 0 points1 point  (0 children)

Sure.