{"action":"created","comment":{"url":"https://api.github.com/repos/flutter-es/website/pulls/comments/218662843","pull_request_review_id":156616556,"id":218662843,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODY2Mjg0Mw==","diff_hunk":"@@ -0,0 +1,157 @@\n+---\n+layout: page\n+title: \"Animaciones: Descripción Técnica\"\n+permalink: /animations/overview.html\n+---\n+\n+* TOC Placeholder\n+{:toc}\n+\n+El sistema de animación de Flutter se basa en objetos del tipo [`Animation`](https://docs.flutter.io/flutter/animation/Animation-class.html).\n+Los widgets pueden incorporar estas animaciones en sus funciones build directamente leyendo su valor actual y escuchando sus cambios de estado o pueden usar las animaciones como base de animaciones más elaboradas que transmiten a otros widgets.\n+\n+## Animation\n+\n+El componente principal del sistema de animación es la clase\n+[`Animation`](https://docs.flutter.io/flutter/animation/Animation-class.html). Una animación representa un valor de un tipo específico que puede cambiar durante la duración de la animación. La mayoría de los widgets que ejecutan una animación reciben un objeto `Animation` como parámetro, desde el que leen el valor actual de la animación y al que escuchan para ver si hay cambios de ese valor.\n+\n+### `addListener`\n+\n+Cada vez que el valor de la animación cambia, la animación notifica a todos los oyentes añadidos con\n+[`addListener`](https://docs.flutter.io/flutter/animation/Animation/addListener.html).\n+Normalmente, un objeto [`State`](https://docs.flutter.io/flutter/widgets/State-class.html) que escucha a una animación llamará a [`setState`](https://docs.flutter.io/flutter/widgets/State/setState.html) sobre si mismo en su callback de escucha para notificar al sistema de widgets que necesita reconstruir con el nuevo valor de la animación.\n+\n+Este patrón es tan común que hay dos widgets que ayudan a reconstruir los widgets cuando las animaciones cambian de valor: [`AnimatedWidget`](https://docs.flutter.io/flutter/widgets/AnimatedWidget-class.html)\n+y [`AnimatedBuilder`](https://docs.flutter.io/flutter/widgets/AnimatedBuilder-class.html).\n+El primero, `AnimatedWidget`, es muy útil para los widgets animados sin estado.\n+Para usar `AnimatedWidget`, simplemente subclasifíquelo e implemente la función [`build`](https://docs.flutter.io/flutter/widgets/AnimatedWidget/build.html).\n+El segundo, `AnimatedBuilder`, es útil para widgets más complejos que desean incluir una animación como parte de una función de construcción más grande. Para utilizar `AnimatedBuilder`, simplemente construya el widget y pase una función `Builder`.\n+\n+### `addStatusListener`\n+\n+\n+Las animaciones también proporcionan un [`AnimationStatus`](https://docs.flutter.io/flutter/animation/AnimationStatus-class.html), que indica cómo evolucionará la animación a lo largo del tiempo. Cada vez que el estado de la animación cambia, la animación notifica a todos los oyentes añadidos con [`addStatusListener`](https://docs.flutter.io/flutter/animation/Animation/addStatusListener.html). Normalmente, las animaciones empiezan en el estado de `dismissed`, lo que significa que están al principio de su rango. Por ejemplo, las animaciones que progresan de 0.0 a 1.0 serán `dismissed` cuando su valor sea 0.0. Una animación podría entonces ejecutarse `forward` (ej., 0.0 a 1.0) o quizás en `reverse` (ej., de 1.0 a 0.0). Eventualmente, si la animación alcanza el final de su rango (por ejemplo 1.0), la animación alcanza el estado `completed`.\n+\n+## AnimationController\n+\n+Para crear una animación, primero cree un [`AnimationController`](https://docs.flutter.io/flutter/animation/AnimationController-class.html). Además de ser una animación en sí misma, un `AnimationController` te permite controlar la animación. Por ejemplo, puede decirle al controlador que reproduzca la animación [`forward`](https://docs.flutter.io/flutter/animation/AnimationController/forward.html) o [`detener`](https://docs.flutter.io/flutter/animation/AnimationController/stop.html) la animación. También puede [`lanzar`](https://docs.flutter.io/flutter/animation/AnimationController/fling.html) animaciones, que utilizan una simulación física, como un resorte, para dirigir la animación.","path":"es_ES/animations/overview.md","position":37,"original_position":37,"commit_id":"7821e038afe35805e47b84acd571c1d338a2658e","original_commit_id":"7821e038afe35805e47b84acd571c1d338a2658e","user":{"login":"caveligh","id":8608495,"node_id":"MDQ6VXNlcjg2MDg0OTU=","avatar_url":"https://avatars3.githubusercontent.com/u/8608495?v=4","gravatar_id":"","url":"https://api.github.com/users/caveligh","html_url":"https://github.com/caveligh","followers_url":"https://api.github.com/users/caveligh/followers","following_url":"https://api.github.com/users/caveligh/following{/other_user}","gists_url":"https://api.github.com/users/caveligh/gists{/gist_id}","starred_url":"https://api.github.com/users/caveligh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caveligh/subscriptions","organizations_url":"https://api.github.com/users/caveligh/orgs","repos_url":"https://api.github.com/users/caveligh/repos","events_url":"https://api.github.com/users/caveligh/events{/privacy}","received_events_url":"https://api.github.com/users/caveligh/received_events","type":"User","site_admin":false},"body":"puedes decirle al controlador\r\nTambién puedes [`lanzar`]\r\n","created_at":"2018-09-19T04:09:04Z","updated_at":"2018-09-19T04:45:15Z","html_url":"https://github.com/flutter-es/website/pull/324#discussion_r218662843","pull_request_url":"https://api.github.com/repos/flutter-es/website/pulls/324","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/flutter-es/website/pulls/comments/218662843"},"html":{"href":"https://github.com/flutter-es/website/pull/324#discussion_r218662843"},"pull_request":{"href":"https://api.github.com/repos/flutter-es/website/pulls/324"}},"in_reply_to_id":218662800},"pull_request":{"url":"https://api.github.com/repos/flutter-es/website/pulls/324","id":215803022,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1ODAzMDIy","html_url":"https://github.com/flutter-es/website/pull/324","diff_url":"https://github.com/flutter-es/website/pull/324.diff","patch_url":"https://github.com/flutter-es/website/pull/324.patch","issue_url":"https://api.github.com/repos/flutter-es/website/issues/324","number":324,"state":"open","locked":false,"title":"Animations","user":{"login":"alexcotte","id":6886316,"node_id":"MDQ6VXNlcjY4ODYzMTY=","avatar_url":"https://avatars3.githubusercontent.com/u/6886316?v=4","gravatar_id":"","url":"https://api.github.com/users/alexcotte","html_url":"https://github.com/alexcotte","followers_url":"https://api.github.com/users/alexcotte/followers","following_url":"https://api.github.com/users/alexcotte/following{/other_user}","gists_url":"https://api.github.com/users/alexcotte/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcotte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcotte/subscriptions","organizations_url":"https://api.github.com/users/alexcotte/orgs","repos_url":"https://api.github.com/users/alexcotte/repos","events_url":"https://api.github.com/users/alexcotte/events{/privacy}","received_events_url":"https://api.github.com/users/alexcotte/received_events","type":"User","site_admin":false},"body":"close #71 \r\nclose #69  \r\nclose #70 \r\nclose #72 \r\n","created_at":"2018-09-16T04:44:49Z","updated_at":"2018-09-19T04:45:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45c8836062b57c5522084fd7f01039fb7c8f9150","assignee":{"login":"alexcotte","id":6886316,"node_id":"MDQ6VXNlcjY4ODYzMTY=","avatar_url":"https://avatars3.githubusercontent.com/u/6886316?v=4","gravatar_id":"","url":"https://api.github.com/users/alexcotte","html_url":"https://github.com/alexcotte","followers_url":"https://api.github.com/users/alexcotte/followers","following_url":"https://api.github.com/users/alexcotte/following{/other_user}","gists_url":"https://api.github.com/users/alexcotte/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcotte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcotte/subscriptions","organizations_url":"https://api.github.com/users/alexcotte/orgs","repos_url":"https://api.github.com/users/alexcotte/repos","events_url":"https://api.github.com/users/alexcotte/events{/privacy}","received_events_url":"https://api.github.com/users/alexcotte/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexcotte","id":6886316,"node_id":"MDQ6VXNlcjY4ODYzMTY=","avatar_url":"https://avatars3.githubusercontent.com/u/6886316?v=4","gravatar_id":"","url":"https://api.github.com/users/alexcotte","html_url":"https://github.com/alexcotte","followers_url":"https://api.github.com/users/alexcotte/followers","following_url":"https://api.github.com/users/alexcotte/following{/other_user}","gists_url":"https://api.github.com/users/alexcotte/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcotte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcotte/subscriptions","organizations_url":"https://api.github.com/users/alexcotte/orgs","repos_url":"https://api.github.com/users/alexcotte/repos","events_url":"https://api.github.com/users/alexcotte/events{/privacy}","received_events_url":"https://api.github.com/users/alexcotte/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"cronos88","id":5728603,"node_id":"MDQ6VXNlcjU3Mjg2MDM=","avatar_url":"https://avatars1.githubusercontent.com/u/5728603?v=4","gravatar_id":"","url":"https://api.github.com/users/cronos88","html_url":"https://github.com/cronos88","followers_url":"https://api.github.com/users/cronos88/followers","following_url":"https://api.github.com/users/cronos88/following{/other_user}","gists_url":"https://api.github.com/users/cronos88/gists{/gist_id}","starred_url":"https://api.github.com/users/cronos88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cronos88/subscriptions","organizations_url":"https://api.github.com/users/cronos88/orgs","repos_url":"https://api.github.com/users/cronos88/repos","events_url":"https://api.github.com/users/cronos88/events{/privacy}","received_events_url":"https://api.github.com/users/cronos88/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1009652726,"node_id":"MDU6TGFiZWwxMDA5NjUyNzI2","url":"https://api.github.com/repos/flutter-es/website/labels/Traducci%C3%B3n","name":"Traducción","color":"4629a5","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/flutter-es/website/pulls/324/commits","review_comments_url":"https://api.github.com/repos/flutter-es/website/pulls/324/comments","review_comment_url":"https://api.github.com/repos/flutter-es/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flutter-es/website/issues/324/comments","statuses_url":"https://api.github.com/repos/flutter-es/website/statuses/7821e038afe35805e47b84acd571c1d338a2658e","head":{"label":"flutter-es:animations","ref":"animations","sha":"7821e038afe35805e47b84acd571c1d338a2658e","user":{"login":"flutter-es","id":41843975,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxODQzOTc1","avatar_url":"https://avatars3.githubusercontent.com/u/41843975?v=4","gravatar_id":"","url":"https://api.github.com/users/flutter-es","html_url":"https://github.com/flutter-es","followers_url":"https://api.github.com/users/flutter-es/followers","following_url":"https://api.github.com/users/flutter-es/following{/other_user}","gists_url":"https://api.github.com/users/flutter-es/gists{/gist_id}","starred_url":"https://api.github.com/users/flutter-es/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flutter-es/subscriptions","organizations_url":"https://api.github.com/users/flutter-es/orgs","repos_url":"https://api.github.com/users/flutter-es/repos","events_url":"https://api.github.com/users/flutter-es/events{/privacy}","received_events_url":"https://api.github.com/users/flutter-es/received_events","type":"Organization","site_admin":false},"repo":{"id":142719942,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI3MTk5NDI=","name":"website","full_name":"flutter-es/website","private":false,"owner":{"login":"flutter-es","id":41843975,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxODQzOTc1","avatar_url":"https://avatars3.githubusercontent.com/u/41843975?v=4","gravatar_id":"","url":"https://api.github.com/users/flutter-es","html_url":"https://github.com/flutter-es","followers_url":"https://api.github.com/users/flutter-es/followers","following_url":"https://api.github.com/users/flutter-es/following{/other_user}","gists_url":"https://api.github.com/users/flutter-es/gists{/gist_id}","starred_url":"https://api.github.com/users/flutter-es/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flutter-es/subscriptions","organizations_url":"https://api.github.com/users/flutter-es/orgs","repos_url":"https://api.github.com/users/flutter-es/repos","events_url":"https://api.github.com/users/flutter-es/events{/privacy}","received_events_url":"https://api.github.com/users/flutter-es/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/flutter-es/website","description":"Flutter web en español (trabajo en proceso)","fork":true,"url":"https://api.github.com/repos/flutter-es/website","forks_url":"https://api.github.com/repos/flutter-es/website/forks","keys_url":"https://api.github.com/repos/flutter-es/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flutter-es/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flutter-es/website/teams","hooks_url":"https://api.github.com/repos/flutter-es/website/hooks","issue_events_url":"https://api.github.com/repos/flutter-es/website/issues/events{/number}","events_url":"https://api.github.com/repos/flutter-es/website/events","assignees_url":"https://api.github.com/repos/flutter-es/website/assignees{/user}","branches_url":"https://api.github.com/repos/flutter-es/website/branches{/branch}","tags_url":"https://api.github.com/repos/flutter-es/website/tags","blobs_url":"https://api.github.com/repos/flutter-es/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flutter-es/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flutter-es/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/flutter-es/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flutter-es/website/statuses/{sha}","languages_url":"https://api.github.com/repos/flutter-es/website/languages","stargazers_url":"https://api.github.com/repos/flutter-es/website/stargazers","contributors_url":"https://api.github.com/repos/flutter-es/website/contributors","subscribers_url":"https://api.github.com/repos/flutter-es/website/subscribers","subscription_url":"https://api.github.com/repos/flutter-es/website/subscription","commits_url":"https://api.github.com/repos/flutter-es/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/flutter-es/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/flutter-es/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/flutter-es/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/flutter-es/website/contents/{+path}","compare_url":"https://api.github.com/repos/flutter-es/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flutter-es/website/merges","archive_url":"https://api.github.com/repos/flutter-es/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flutter-es/website/downloads","issues_url":"https://api.github.com/repos/flutter-es/website/issues{/number}","pulls_url":"https://api.github.com/repos/flutter-es/website/pulls{/number}","milestones_url":"https://api.github.com/repos/flutter-es/website/milestones{/number}","notifications_url":"https://api.github.com/repos/flutter-es/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flutter-es/website/labels{/name}","releases_url":"https://api.github.com/repos/flutter-es/website/releases{/id}","deployments_url":"https://api.github.com/repos/flutter-es/website/deployments","created_at":"2018-07-29T00:46:28Z","updated_at":"2018-09-15T16:04:49Z","pushed_at":"2018-09-19T04:11:49Z","git_url":"git://github.com/flutter-es/website.git","ssh_url":"git@github.com:flutter-es/website.git","clone_url":"https://github.com/flutter-es/website.git","svn_url":"https://github.com/flutter-es/website","homepage":"https://flutter-es.io","size":79791,"stargazers_count":18,"watchers_count":18,"language":"Dart","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":25,"license":null,"forks":2,"open_issues":25,"watchers":18,"default_branch":"master"}},"base":{"label":"flutter-es:master","ref":"master","sha":"35c71bb7767ceb2de431651889addabde0f69ba7","user":{"login":"flutter-es","id":41843975,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxODQzOTc1","avatar_url":"https://avatars3.githubusercontent.com/u/41843975?v=4","gravatar_id":"","url":"https://api.github.com/users/flutter-es","html_url":"https://github.com/flutter-es","followers_url":"https://api.github.com/users/flutter-es/followers","following_url":"https://api.github.com/users/flutter-es/following{/other_user}","gists_url":"https://api.github.com/users/flutter-es/gists{/gist_id}","starred_url":"https://api.github.com/users/flutter-es/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flutter-es/subscriptions","organizations_url":"https://api.github.com/users/flutter-es/orgs","repos_url":"https://api.github.com/users/flutter-es/repos","events_url":"https://api.github.com/users/flutter-es/events{/privacy}","received_events_url":"https://api.github.com/users/flutter-es/received_events","type":"Organization","site_admin":false},"repo":{"id":142719942,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI3MTk5NDI=","name":"website","full_name":"flutter-es/website","private":false,"owner":{"login":"flutter-es","id":41843975,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxODQzOTc1","avatar_url":"https://avatars3.githubusercontent.com/u/41843975?v=4","gravatar_id":"","url":"https://api.github.com/users/flutter-es","html_url":"https://github.com/flutter-es","followers_url":"https://api.github.com/users/flutter-es/followers","following_url":"https://api.github.com/users/flutter-es/following{/other_user}","gists_url":"https://api.github.com/users/flutter-es/gists{/gist_id}","starred_url":"https://api.github.com/users/flutter-es/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flutter-es/subscriptions","organizations_url":"https://api.github.com/users/flutter-es/orgs","repos_url":"https://api.github.com/users/flutter-es/repos","events_url":"https://api.github.com/users/flutter-es/events{/privacy}","received_events_url":"https://api.github.com/users/flutter-es/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/flutter-es/website","description":"Flutter web en español (trabajo en proceso)","fork":true,"url":"https://api.github.com/repos/flutter-es/website","forks_url":"https://api.github.com/repos/flutter-es/website/forks","keys_url":"https://api.github.com/repos/flutter-es/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flutter-es/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flutter-es/website/teams","hooks_url":"https://api.github.com/repos/flutter-es/website/hooks","issue_events_url":"https://api.github.com/repos/flutter-es/website/issues/events{/number}","events_url":"https://api.github.com/repos/flutter-es/website/events","assignees_url":"https://api.github.com/repos/flutter-es/website/assignees{/user}","branches_url":"https://api.github.com/repos/flutter-es/website/branches{/branch}","tags_url":"https://api.github.com/repos/flutter-es/website/tags","blobs_url":"https://api.github.com/repos/flutter-es/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flutter-es/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flutter-es/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/flutter-es/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flutter-es/website/statuses/{sha}","languages_url":"https://api.github.com/repos/flutter-es/website/languages","stargazers_url":"https://api.github.com/repos/flutter-es/website/stargazers","contributors_url":"https://api.github.com/repos/flutter-es/website/contributors","subscribers_url":"https://api.github.com/repos/flutter-es/website/subscribers","subscription_url":"https://api.github.com/repos/flutter-es/website/subscription","commits_url":"https://api.github.com/repos/flutter-es/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/flutter-es/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/flutter-es/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/flutter-es/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/flutter-es/website/contents/{+path}","compare_url":"https://api.github.com/repos/flutter-es/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flutter-es/website/merges","archive_url":"https://api.github.com/repos/flutter-es/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flutter-es/website/downloads","issues_url":"https://api.github.com/repos/flutter-es/website/issues{/number}","pulls_url":"https://api.github.com/repos/flutter-es/website/pulls{/number}","milestones_url":"https://api.github.com/repos/flutter-es/website/milestones{/number}","notifications_url":"https://api.github.com/repos/flutter-es/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flutter-es/website/labels{/name}","releases_url":"https://api.github.com/repos/flutter-es/website/releases{/id}","deployments_url":"https://api.github.com/repos/flutter-es/website/deployments","created_at":"2018-07-29T00:46:28Z","updated_at":"2018-09-15T16:04:49Z","pushed_at":"2018-09-19T04:11:49Z","git_url":"git://github.com/flutter-es/website.git","ssh_url":"git@github.com:flutter-es/website.git","clone_url":"https://github.com/flutter-es/website.git","svn_url":"https://github.com/flutter-es/website","homepage":"https://flutter-es.io","size":79791,"stargazers_count":18,"watchers_count":18,"language":"Dart","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":25,"license":null,"forks":2,"open_issues":25,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flutter-es/website/pulls/324"},"html":{"href":"https://github.com/flutter-es/website/pull/324"},"issue":{"href":"https://api.github.com/repos/flutter-es/website/issues/324"},"comments":{"href":"https://api.github.com/repos/flutter-es/website/issues/324/comments"},"review_comments":{"href":"https://api.github.com/repos/flutter-es/website/pulls/324/comments"},"review_comment":{"href":"https://api.github.com/repos/flutter-es/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flutter-es/website/pulls/324/commits"},"statuses":{"href":"https://api.github.com/repos/flutter-es/website/statuses/7821e038afe35805e47b84acd571c1d338a2658e"}},"author_association":"NONE"}}
{"actor":{"display_login":"caveligh"}}