How to avoid push exist route in flutter? Or any way to replace exist route?

Viewed 25

I'm using getx on flutter

And I faced a problem when using Get.toNamed

For example, there are page A, B, C

Page C has a button that can go to Page A. And page A has a scrollController

When I move like A -> B -> C -> A

Error says scrollController has attatched to multiple scroll view.

It seems like logic(controller) is not duplicated so there is only one controller with 2 view

And I don't want seperated logic

Is there any way to Avoid this error?

What I want to do is A -> B -> C and tapped button to go Page A then go to A while maintaining A -> B -> C stacks

Thanks

0 Answers
Related