No Flutter, tudo é um widget — elementos de UI (botões, texto, imagens), estruturas de layout (linhas, colunas, preenchimento) e até o próprio app são todos widgets. Widgets são os blocos de construção imutáveis que se compõem para formar toda a interface do usuário.
Tudo é um 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).
