Move Get. put from being a field of MainScreen to inside its build() method . The Controller can then be disposed when MainScreen is popped.
Read moreWhat is binding GetX?
The Binding class is a class that will decouple dependency injection, while “binding” routes to the state manager and dependency manager . This allows Get to know which screen is being displayed when a particular controller is used and to know where and how to dispose of it.
Read moreHow do I remove GetX controller Flutter?
While using the Get package in your Flutter project, sometimes you might need to remove Get Controller manually. In order to do so, you can simply call Get. delete function .
Read moreWhat is the use of get in Flutter?
Get centralizes the main resources for development (State, dependency and route management), allowing you to add a single package to your pubspec, and start working . After a Flutter update, the only thing you need to do is update the Get dependency, and get to work. Get also resolves compatibility issues.
Read moreWhat is GetX architecture in Flutter?
What is GetX? GetX is an extra-light and powerful solution for Flutter . It combines high- performance state management, intelligent dependency injection, and route management quickly and practically.
Read moreWhat is GetX architecture in Flutter?
What is GetX? GetX is an extra-light and powerful solution for Flutter . It combines high- performance state management, intelligent dependency injection, and route management quickly and practically.
Read more