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 get put in GetX?
Getx allows you to perform Dependency injection with just one line of code: final cartController = Get. put(CartController()); We have injected the cartController into our UI so that we can access the data on the controller.21 Eyl 2021
Read moreWhat is get put in GetX?
Getx allows you to perform Dependency injection with just one line of code: final cartController = Get. put(CartController()); We have injected the cartController into our UI so that we can access the data on the controller.21 Eyl 2021
Read moreBLoC Pattern nedir?
BLoC nedir ? Google tarafından tavsiye edilen patternlerden biri olan BLoC (Business Logic Component): Business Logicinizi, Presentation katmanınızdan ayıran, platform bağımsız kalmanızı sağlayan, uygulamanızdaki sorumlulukları ayıran ve kolay test edilebilir kodlar yazmanızı sağlayan bir pattern .
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 you manage state in GetX Flutter?
Let’s get going with GetX state management
Read more