How 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 .

Sizin İçin Seçtik  How do I turn off GetX controller Flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *