Nipodemos

it was explained what smartmanagent is, but not how to actually change it

@@ -232,7 +232,7 @@ The Binding class is a class that will decouple dependency injection, while "bin @@ -232,7 +232,7 @@ The Binding class is a class that will decouple dependency injection, while "bin
232 This allows Get to know which screen is being displayed when a particular controller is used and to know where and how to dispose of it. 232 This allows Get to know which screen is being displayed when a particular controller is used and to know where and how to dispose of it.
233 In addition, the Binding class will allow you to have SmartManager configuration control. You can configure the dependencies to be arranged when removing a route from the stack, or when the widget that used it is laid out, or neither. You will have intelligent dependency management working for you, but even so, you can configure it as you wish. 233 In addition, the Binding class will allow you to have SmartManager configuration control. You can configure the dependencies to be arranged when removing a route from the stack, or when the widget that used it is laid out, or neither. You will have intelligent dependency management working for you, but even so, you can configure it as you wish.
234 234
235 -### How to use 235 +### Bindings class
236 236
237 - Create a class and implements Binding 237 - Create a class and implements Binding
238 238
@@ -333,6 +333,23 @@ GetX by default disposes unused controllers from memory, even if a failure occur @@ -333,6 +333,23 @@ GetX by default disposes unused controllers from memory, even if a failure occur
333 This is what is called the `full` mode of dependency management. 333 This is what is called the `full` mode of dependency management.
334 But if you want to change the way GetX controls the disposal of classes, you have `SmartManagement` class that you can set different behaviors. 334 But if you want to change the way GetX controls the disposal of classes, you have `SmartManagement` class that you can set different behaviors.
335 335
  336 +#### How to change
  337 +
  338 +If you want to change this config (which you usually don't need) this is the way:
  339 +
  340 +```dart
  341 +void main () {
  342 + runApp(
  343 + GetMaterialApp(
  344 + smartManagement: SmartManagement.onlyBuilders //here
  345 + home: Home(),
  346 + )
  347 + )
  348 +}
  349 +
  350 +
  351 +```
  352 +
336 #### SmartManagement.full 353 #### SmartManagement.full
337 354
338 It is the default one. Dispose classes that are not being used and were not set to be permanent. In the majority of the cases you will want to keep this config untouched. If you new to GetX then don't change this. 355 It is the default one. Dispose classes that are not being used and were not set to be permanent. In the majority of the cases you will want to keep this config untouched. If you new to GetX then don't change this.