Showing
1 changed file
with
4 additions
and
4 deletions
@@ -88,13 +88,13 @@ var data = await Get.to(Payment()); | @@ -88,13 +88,13 @@ var data = await Get.to(Payment()); | ||
88 | on other screen, send a data for previous route: | 88 | on other screen, send a data for previous route: |
89 | 89 | ||
90 | ```dart | 90 | ```dart |
91 | -Get.back(result: 'sucess'); | 91 | +Get.back(result: 'success'); |
92 | ``` | 92 | ``` |
93 | And use it: | 93 | And use it: |
94 | 94 | ||
95 | ex: | 95 | ex: |
96 | ```dart | 96 | ```dart |
97 | -if(data == 'sucess') madeAnything(); | 97 | +if(data == 'success') madeAnything(); |
98 | ``` | 98 | ``` |
99 | 99 | ||
100 | Don't you want to learn our syntax? | 100 | Don't you want to learn our syntax? |
@@ -465,7 +465,7 @@ The state only changes if the values change. That's the main difference be | @@ -465,7 +465,7 @@ The state only changes if the values change. That's the main difference be | ||
465 | ```dart | 465 | ```dart |
466 | final count1 = 0.obs; | 466 | final count1 = 0.obs; |
467 | final count2 = 0.obs; | 467 | final count2 = 0.obs; |
468 | -int get soma => count1.value + count2.value; | 468 | +int get sum => count1.value + count2.value; |
469 | ``` | 469 | ``` |
470 | 470 | ||
471 | ```dart | 471 | ```dart |
@@ -484,7 +484,7 @@ int get soma => count1.value + count2.value; | @@ -484,7 +484,7 @@ int get soma => count1.value + count2.value; | ||
484 | GetX<Controller>( | 484 | GetX<Controller>( |
485 | builder: (_) { | 485 | builder: (_) { |
486 | print("count 3 rebuild"); | 486 | print("count 3 rebuild"); |
487 | - return Text('${_.soma}'); | 487 | + return Text('${_.sum}'); |
488 | }, | 488 | }, |
489 | ), | 489 | ), |
490 | ``` | 490 | ``` |
-
Please register or login to post a comment