Showing
1 changed file
with
6 additions
and
6 deletions
@@ -269,7 +269,7 @@ fireRoute(logged) { | @@ -269,7 +269,7 @@ fireRoute(logged) { | ||
269 | 269 | ||
270 | ### Условия для перестраивания | 270 | ### Условия для перестраивания |
271 | 271 | ||
272 | -In addition, Get provides refined state control. You can condition an event (such as adding an object to a list), on a certain condition. | 272 | +Кроме того, Get обеспечивает усовершенствованный контроль состояния. Вы можете обусловить событие (например, добавление объекта в список) определенным условием. |
273 | 273 | ||
274 | ```dart | 274 | ```dart |
275 | // First parameter: condition, must return true of false | 275 | // First parameter: condition, must return true of false |
@@ -277,9 +277,9 @@ In addition, Get provides refined state control. You can condition an event (suc | @@ -277,9 +277,9 @@ In addition, Get provides refined state control. You can condition an event (suc | ||
277 | list.addIf(item < limit, item); | 277 | list.addIf(item < limit, item); |
278 | ``` | 278 | ``` |
279 | 279 | ||
280 | -Without decorations, without a code generator, without complications :smile: | 280 | +Без украшений, без генератора кода, без сложностей :smile: |
281 | 281 | ||
282 | -Do you know Flutter's counter app? Your Controller class might look like this: | 282 | +Вы ведь знаете счётчик Flutter? Ваш класс контроллера может выглядеть так: |
283 | 283 | ||
284 | ```dart | 284 | ```dart |
285 | class CountController extends GetxController { | 285 | class CountController extends GetxController { |
@@ -287,15 +287,15 @@ class CountController extends GetxController { | @@ -287,15 +287,15 @@ class CountController extends GetxController { | ||
287 | } | 287 | } |
288 | ``` | 288 | ``` |
289 | 289 | ||
290 | -With a simple: | 290 | +С простым: |
291 | 291 | ||
292 | ```dart | 292 | ```dart |
293 | controller.count.value++ | 293 | controller.count.value++ |
294 | ``` | 294 | ``` |
295 | 295 | ||
296 | -You could update the counter variable in your UI, regardless of where it is stored. | 296 | +Вы можете обновить переменную счетчика в своем пользовательском интерфейсе, независимо от того, где она хранится. |
297 | 297 | ||
298 | -### Where .obs can be used | 298 | +### Где .obs может быть использован |
299 | 299 | ||
300 | You can transform anything on obs. Here are two ways of doing it: | 300 | You can transform anything on obs. Here are two ways of doing it: |
301 | 301 |
-
Please register or login to post a comment