> For the complete documentation index, see [llms.txt](https://ecm-pmdm-flutter.gitbook.io/1.-introduccion-a-flutter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ecm-pmdm-flutter.gitbook.io/1.-introduccion-a-flutter/1.-introduccion/como-funciona-flutter.md).

# ¿Cómo funciona Flutter?

Una **aplicación** **Flutter** se **ejecuta** de forma **nativa** en cada plataforma, gracias a la **compilación** Ahead Of Time (**AOT**).

Flutter se comporta de forma similar a como lo hace un motor de videojuegos:

* **Renderizando** elementos gráficos en un **canvas** de [Impeler](https://docs.flutter.dev/perf/impeller) y enviándolo a la plataforma nativa.&#x20;
* La **plataforma** muestra el **canvas** y envía **eventos** a la aplicación en caso de necesitarlo (eventos de ciclo de vida,  eventos de cambios de configuración, ...etc. ).

<figure><img src="/files/2Z7RBTB5WoKwNyWxFMFh" alt=""><figcaption></figcaption></figure>

> Impeler es el nuevo motor de renderizado de Flutter, diseñado principalmente para manejar gráficos 2D, pero con la capacidad de soportar 3D en el futuro. Sustituye al anterior motor, Skia, que estaba limitado exclusivamente al 2D.

{% hint style="info" %}
Artículo:&#x20;

<https://medium.com/@allrounddiksha/understanding-how-flutter-works-a-comprehensive-guide-8ea842a75692>
{% endhint %}

### Flutter vs React Native

Flutter, reactivo y declarativo, se parece a React Native, en cambio, **no necesita** ningún **puente Javascript,** por tanto, **las aplicaciones Flutter arrancan más rápido** y tienen **mejor** **rendimiento** (gracias a la compilación **AOT**)

![Flutter vs React Native](/files/ko60GOaRnbfn6DJ4Yls7)

A diferencia de React Native, en Flutter todo gira entorno a los **widgets, no se depende de los UI propios de cada plataforma:  Flutter** pide una **ventana** al sistema operativo en el que se está ejecutando y **gestiona directmente** **todo** el contenid&#x6F;**,** utilizando Dart (El motor de renderizado de Flutter (Impeller o Skia) dibuja directamente los widgets en la pantalla, **sin depender de los componentes de la interfaz de usuario nativos)**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ecm-pmdm-flutter.gitbook.io/1.-introduccion-a-flutter/1.-introduccion/como-funciona-flutter.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
