Committed by
GitHub
Merge pull request #106 from ghprod/master
Fix readme
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -249,6 +249,7 @@ What performance improvements does Get bring? | @@ -249,6 +249,7 @@ What performance improvements does Get bring? | ||
249 | 4- Organize your project for real! Controllers must not be in your UI, place your TextEditController, or any controller you use within your Controller class. | 249 | 4- Organize your project for real! Controllers must not be in your UI, place your TextEditController, or any controller you use within your Controller class. |
250 | 250 | ||
251 | 5- Do you need to trigger an event to update a widget as soon as it is rendered? GetBuilder has the property "initState", just like StatefulWidget, and you can call events from your controller, directly from it, no more events being placed in your initState. | 251 | 5- Do you need to trigger an event to update a widget as soon as it is rendered? GetBuilder has the property "initState", just like StatefulWidget, and you can call events from your controller, directly from it, no more events being placed in your initState. |
252 | + | ||
252 | 6- Do you need to trigger an action like closing streams, timers and etc? GetBuilder also has the dispose property, where you can call events as soon as that widget is destroyed. | 253 | 6- Do you need to trigger an action like closing streams, timers and etc? GetBuilder also has the dispose property, where you can call events as soon as that widget is destroyed. |
253 | 254 | ||
254 | 7- Use streams only if necessary. You can use your StreamControllers inside your controller normally, and use StreamBuilder also normally, but remember, a stream reasonably consumes memory, reactive programming is beautiful, but you shouldn't abuse it. 30 streams open simultaneously can be worse than changeNotifier (and changeNotifier is very bad). | 255 | 7- Use streams only if necessary. You can use your StreamControllers inside your controller normally, and use StreamBuilder also normally, but remember, a stream reasonably consumes memory, reactive programming is beautiful, but you shouldn't abuse it. 30 streams open simultaneously can be worse than changeNotifier (and changeNotifier is very bad). |
@@ -536,8 +537,7 @@ Camila | @@ -536,8 +537,7 @@ Camila | ||
536 | 23 | 537 | 23 |
537 | 24 | 538 | 24 |
538 | 25 | 539 | 25 |
539 | - | ||
540 | - | 540 | +``` |
541 | 541 | ||
542 | ## Simple Instance Manager | 542 | ## Simple Instance Manager |
543 | Are you already using Get and want to make your project as lean as possible? Get has a simple and powerful dependency manager that allows you to retrieve the same class as your Bloc or Controller with just 1 lines of code, no Provider context, no inheritedWidget: | 543 | Are you already using Get and want to make your project as lean as possible? Get has a simple and powerful dependency manager that allows you to retrieve the same class as your Bloc or Controller with just 1 lines of code, no Provider context, no inheritedWidget: |
-
Please register or login to post a comment