Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – Flutter refresh first page after multiple navigations

Posted on November 11, 2022 By

Solution 1 :

Why don’t you try to use Flutter Route Observer, simply you can check if you pop back to page A then you fetch the updated list of groups.

For more info you can check this link
Route Observer Class

Inside the didPopNext() method you can write code that will get executed when you pop to this page

Problem :

my question is how to perform the following action in fluttter:

I have page with lists of groups (Page A) then I am pushing to group detail (Page B) and from Page B I am pushing to other screen to edit detail (Page C). What I want to achieve is that when I will pop back to Page A it will contain refreshed list with updated detail of specific group. How can I achieve this ?

WHAT I TRIED:

I know that when I am pushing from page A to page B and popping back from B is performing refresh (I can achieve this with then callback when going from A to B) … but this approach is not working when going from A->B->C and then popping to A.

Comments

Comment posted by Hreso

Hi thanks for tip I will try it. But which widget should implement this observer ? Page A ?

Comment posted by Ahmed Adel

You need to implement it in page A, and inside the didPopNext() method add the code you want to execute when you pop to this page, which will be the code to fetch the updated list of groups

READ  [FIXED] android studio - How to execute and read 2 terminal commands in one process on MacOS in Java
Powered by Inline Related Posts
Android Tags:android, flutter, mobile, navigation, navigator

Post navigation

Previous Post: [FIXED] android – How to detect when third party app’s dialog box appears in React native?
Next Post: [FIXED] android – Get the list of user SIM cards and select it – flutter

Related Posts

[FIXED] java – How do I calculate the total price in the shopping cart? Android
[FIXED] android – Gradle not finding main method after changing project structure Android
[FIXED] java – Passing data from one fragment to another fragment from FirebaseRecyclerAdapter Android
[FIXED] unity3d – How to combine Android/Java Library with Unity Android
[FIXED] xamarin – Android emulator suddenly stopped to work Android
[FIXED] android – How to notify data set changed of recycler view outside its adapter? Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Can VPN be traced by police?
  • Where were Kaiser-Frazer cars built?
  • How do you make gold rose gold paint?
  • What are the newest type of dentures?
  • Can you wear joggers as dress pants?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme