You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My current page structure is A -> B (Chat page) -> C -> D (Select New Contact page), when I have done some operations using D page, I want to go back to B page and let the controller of B be completely destroyed and recreated, C and D pages are no longer needed.
I tried to use the following code and instead of destroying and then creating the controller, it is created and then destroyed:
you need create controller for every page, C , B and D controller will destroyed if you leave the page, and if you back to page B, controller B will be init again.
use final c = Get.put(BController) below Widget build
@allasca The page I generated using get_cli does a lazyPut of the controller in the binding file。 Get.offNamedUntil("B", (route) => route.settings.name == "A");
but the page B controller is not properly destroyed and created again
@quentin996007 get.offamed will destroyed the last page and remove it from stack, and you cant go back. Try use get.tonamed. sorry I ma not using get_cli anymore, little forgot about it
My current page structure is A -> B (Chat page) -> C -> D (Select New Contact page), when I have done some operations using D page, I want to go back to B page and let the controller of B be completely destroyed and recreated, C and D pages are no longer needed.
I tried to use the following code and instead of destroying and then creating the controller, it is created and then destroyed:
How can I solve this problem? Currently I have implemented it in a less than elegant way and I would like to get the elegant and correct answer.
example:
The text was updated successfully, but these errors were encountered: