How to Reinitialize on .toNamed() #2297
Unanswered
sunjianan9900
asked this question in
Q&A
Replies: 1 comment 1 reply
-
does not accept offAll() because I need the user to be able to return to the previously opened pages in order. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have two pages A and B. Page A will initialize a current time and display it in GetxController's onInit(). page B has only one function, which is toNamed(A)
When my open path is.
A - B - A - B - A ...
At this time, the time displayed for any of the later A's is the time of the first one, which means that the later A's are not reinitialized.
This causes an error when repeatedly opening different users' home pages and then going to their posts, always showing the first user's home page.
So, how should I make each A initialize?
Beta Was this translation helpful? Give feedback.
All reactions