Bloc: elements get destroyed after navigation and comming back to the screen

Created on 11 Apr 2020  ·  10Comments  ·  Source: felangel/bloc

that page ,, u can see all the ui elements destroyed or invisible, can you help me y this is happening? @felangel @tenhobi

question

Most helpful comment

please wait uploading it now,,sorry

All 10 comments

Hi @samsheldin 👋
Thanks for opening an issue!

I took a look at the repo and didn’t see any dart code. Has all the code been pushed?

yes

Can you share a link to the main.dart file? I don’t see any dart code in the repo.

please wait uploading it now,,sorry

@felangel @tenhobi Hi ,, i have uploade a zip file of the project pls check it out..

Hi @felangel i think i have found the error and it's happening because of the state change during navigation,,, could you please suggest a better way to navigate after looking at the code

@samsheldin have you taken a look at https://bloclibrary.dev/#/recipesflutternavigation?

Closing for now but feel free to comment with additional questions or provide a link to a sample app and I'm more than happy to continue the conversation 👍

i have done this and it gives me an error

On Thu, Apr 16, 2020 at 6:13 AM Felix Angelov notifications@github.com
wrote:

Closed #1029 https://github.com/felangel/bloc/issues/1029.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/felangel/bloc/issues/1029#event-3237752375, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ALRLMEE7WHVENJYQO54UEV3RMZIBLANCNFSM4MGBJQ4A
.

i have follewed a similar pattern but it gets destreoyyed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timtraversy picture timtraversy  ·  3Comments

hivesey picture hivesey  ·  3Comments

wheel1992 picture wheel1992  ·  3Comments

rsnider19 picture rsnider19  ·  3Comments

1AlexFix1 picture 1AlexFix1  ·  3Comments