Renderimi i Flutter-it përfshin tre pemë — pemën e Widget-ve (konfigurimi), pemën e Element-eve (widget-et e instantuara, të menaxhuara), dhe pemën e RenderObject-eve (layout dhe piktura). Të kuptosh këtë pipeline të çka-konfuzojnë se si Flutter në mënyrë efikase shndërron widget-et në piksel.
Tre pemët
WIDGET tree → immutable CONFIGURATION (what you write: the description of the UI)
→ cheap to create/recreate; rebuilt often (build() returns new widgets)
ELEMENT tree → the INSTANTIATED widgets; manages lifecycle and LINKS widgets to render
objects; PERSISTS across rebuilds (this is the key to efficiency)
RENDEROBJECT tree → does the actual LAYOUT, PAINTING, and hit-testing (the heavy objects)
→ expensive; REUSED and updated (not recreated) across rebuilds
