manage flutter Controllers in generals

576 Views Asked by At

I have more than one question about controllers :

Do I need to dispose of every controller I create, even if it's TextEditingController or AnimationController?

StatelessWidget and StatefulWidget, Do I need to convert StatelessWidget to stateful to dispose of the controller or Stateless can dispose automatically and no need to convert?

Do I need to controller.removeListener({}()) even if I controller.dispose() ?

0

There are 0 best solutions below