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 .9 Eyl 2021
Read moreHow do you dispose of a controller on Flutter GetX?
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 more