Ve Flutteru je všechno widget — prvky uživatelského rozhraní (tlačítka, text, obrázky), struktury rozvržení (řádky, sloupce, padding) a dokonce samotná aplikace jsou všechny widgety. Widgety jsou neměnné stavební bloky, které se skládají tak, aby vytvořily celé uživatelské rozhraní.
Všechno je widget
Widgets describe the UI. EVERYTHING is a widget:
→ visible elements: Text, Image, Icon, Button, etc.
→ layout: Row, Column, Container, Padding, Center, Stack, etc.
→ structure: Scaffold (page structure), AppBar, etc.
→ even the app itself (MaterialApp) and abstract things (Padding, Theme)
→ You build UI by COMPOSING widgets into a tree (widgets contain other widgets).
