Ah, I see.

Well, that's another profit in using BLoC architecture – you don't even need to worry about things like this. If master and detail screens share the same BLoC (which makes sense if they use the same data), there's nothing you need to do manually – updating data in BLoC forces an update of the UI.

If they don't use the same BLoC, I usually prefer waiting for result and updating data. E.g. we launch a new page with `final result = await Navigator.of(context).push()` and after the new page is popped, we get the result and decide what to do with – probably, update the old page.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Kirill Bubochkin
Kirill Bubochkin

No responses yet

Write a response