Move Get. put from being a field of MainScreen to inside its build() method . The Controller can then be disposed when MainScreen is popped.5 Eyl 2021
Read moreHow do I dispose of 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.5 Eyl 2021
Read moreDo I need to dispose TextEditingController?
Remember to dispose of the TextEditingController when it is no longer needed . This will ensure we discard any resources used by the object. This example creates a TextField with a TextEditingController whose change listener forces the entered text to be lower case and keeps the cursor at the end of the input.
Read moreDo I need to dispose TextEditingController?
Remember to dispose of the TextEditingController when it is no longer needed . This will ensure we discard any resources used by the object. This example creates a TextField with a TextEditingController whose change listener forces the entered text to be lower case and keeps the cursor at the end of the input.
Read more