The big idea
Most UI frameworks hand your buttons and text to the operating system's built-in widgets. Flutter doesn't. It draws every pixel itself, the way a game engine does. The OS gives Flutter a blank canvas, and Flutter paints everything on it: buttons, text, shadows, scrolling lists.
That's why a Flutter app looks the same on every platform, and why Flutter needs its own rendering pipeline.
1. The three layers of Flutter
Think of Flutter as a three-storey building. Your code lives on the top floor, and each floor only talks to the one below it.
flowchart TD A["Your app code (Dart)"] --> B subgraph B["Framework (Dart)"] B1["Material / Cupertino"] B2["Widgets"] B3["Rendering: layout and paint"] B4["Animation, Gestures, Painting"] end B --> C subgraph C["Engine (C++)"] C1["Dart runtime"] C2["Impeller / Skia graphics"] C3["Text layout"] end C --> D subgraph D["Embedder (platform code)"] D1["Window / surface"] D2["Input and vsync"] D3["Plugins"] end D --> E["OS and GPU"]
Layer Written in What it…