[Flutter] 플러터 GetX Controller not close (컨트롤러가 자동으로 삭제 및 종료 되지 않을때) 해결 방법


[Flutter] 플러터 GetX Controller not close (컨트롤러가 자동으로 삭제 및 종료 되지 않을때) 해결 방법

원인 # 초기에 이 문제 때문에 정말 많이 헷갈렸습니다. 컨트롤러가 자동으로 닫히지 않으니 계속 이전 데이터를 불러왔기 때문입니다. "smartManagement: SmartManagement.onlyBuilder" 옵션에서 기본 옵션이 아닌 "SmartManagement.onlyBuilder"을 사용했기 때문 입니다. 해결방법 # "GetMaterialApp"에서 "smartManagement" 옵션이 "SmartManagement.onlyBuilder" 으로 되어 있다면, 기본 "SmartManagement.full" 으로 변경하거나, 삭제해야 컨트롤러가 사용되지 않을때 알아서 삭제해줍니다. 참고링크 getx/dependency_management.md at master · jonataslaw/getx Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies e...


#binding #바인딩 #메모리삭제 #겟엑스 #memory #getx #flutter #delete #controller #close #플러터

원문링크 : [Flutter] 플러터 GetX Controller not close (컨트롤러가 자동으로 삭제 및 종료 되지 않을때) 해결 방법